🐳 Added mongo container and fixed an ENV var

This commit is contained in:
2021-09-01 09:06:20 -07:00
parent cc8d3febdb
commit 762b5cb037
3 changed files with 14 additions and 4 deletions

View File

@@ -1,5 +1,7 @@
# ThreeTwo!
ThreeTwo! is a comic book curation app.
⚠️ This project is in early stages of development and as such, not ready for general use.
## Dependencies
@@ -20,6 +22,7 @@ Make sure that you have `docker` and `docker-compose` installed.
2. Create an external docker network using `docker network create proxy`
3. Run `docker-compose up --build -d`
4. Note that the first time, the process could take up to 10 minutes, since it is building containers for `threetwo`, `threetwo-import-service`, `comicvine-service`, `mongo`, `nats`, `nginx`
5. For posterity, check that all containers are up using `docker ps`
## Local Development

View File

@@ -58,6 +58,7 @@ services:
env_file: threetwo-import-service.env
depends_on:
- nats
- mongodb
networks:
- proxy
@@ -65,7 +66,10 @@ services:
build:
context: https://github.com/rishighan/threetwo-import-service.git
image: frishi/threetwo-import-service
container_name: import
container_name: import
depends_on:
- mongodb
- nats
environment:
SERVICES: import
env_file: threetwo-import-service.env
@@ -76,7 +80,10 @@ services:
build:
context: https://github.com/rishighan/threetwo-import-service.git
image: frishi/threetwo-import-service
container_name: image-transformation
container_name: image-transformation
depends_on:
- mongodb
- nats
environment:
SERVICES: imagetransformation
env_file: threetwo-import-service.env
@@ -85,7 +92,7 @@ services:
mongodb:
image: 'bitnami/mongodb:latest'
container_name: mongodb
container_name: db
networks:
- proxy
ports:

View File

@@ -2,7 +2,7 @@ NAMESPACE=
LOGGER=true
LOGLEVEL=info
SERVICEDIR=dist/services
MONGO_URI=mongodb://localhost:27017/threetwo
MONGO_URI=mongodb://db:27017/threetwo
TRANSPORTER=nats://nats:4222
CACHER=Memory