🐳 Added mongo container and fixed an ENV var
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
# ThreeTwo!
|
# ThreeTwo!
|
||||||
|
|
||||||
|
ThreeTwo! is a comic book curation app.
|
||||||
|
|
||||||
⚠️ This project is in early stages of development and as such, not ready for general use.
|
⚠️ This project is in early stages of development and as such, not ready for general use.
|
||||||
|
|
||||||
## Dependencies
|
## 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`
|
2. Create an external docker network using `docker network create proxy`
|
||||||
3. Run `docker-compose up --build -d`
|
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`
|
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
|
## Local Development
|
||||||
|
|
||||||
|
|||||||
@@ -58,6 +58,7 @@ services:
|
|||||||
env_file: threetwo-import-service.env
|
env_file: threetwo-import-service.env
|
||||||
depends_on:
|
depends_on:
|
||||||
- nats
|
- nats
|
||||||
|
- mongodb
|
||||||
networks:
|
networks:
|
||||||
- proxy
|
- proxy
|
||||||
|
|
||||||
@@ -65,7 +66,10 @@ services:
|
|||||||
build:
|
build:
|
||||||
context: https://github.com/rishighan/threetwo-import-service.git
|
context: https://github.com/rishighan/threetwo-import-service.git
|
||||||
image: frishi/threetwo-import-service
|
image: frishi/threetwo-import-service
|
||||||
container_name: import
|
container_name: import
|
||||||
|
depends_on:
|
||||||
|
- mongodb
|
||||||
|
- nats
|
||||||
environment:
|
environment:
|
||||||
SERVICES: import
|
SERVICES: import
|
||||||
env_file: threetwo-import-service.env
|
env_file: threetwo-import-service.env
|
||||||
@@ -76,7 +80,10 @@ services:
|
|||||||
build:
|
build:
|
||||||
context: https://github.com/rishighan/threetwo-import-service.git
|
context: https://github.com/rishighan/threetwo-import-service.git
|
||||||
image: frishi/threetwo-import-service
|
image: frishi/threetwo-import-service
|
||||||
container_name: image-transformation
|
container_name: image-transformation
|
||||||
|
depends_on:
|
||||||
|
- mongodb
|
||||||
|
- nats
|
||||||
environment:
|
environment:
|
||||||
SERVICES: imagetransformation
|
SERVICES: imagetransformation
|
||||||
env_file: threetwo-import-service.env
|
env_file: threetwo-import-service.env
|
||||||
@@ -85,7 +92,7 @@ services:
|
|||||||
|
|
||||||
mongodb:
|
mongodb:
|
||||||
image: 'bitnami/mongodb:latest'
|
image: 'bitnami/mongodb:latest'
|
||||||
container_name: mongodb
|
container_name: db
|
||||||
networks:
|
networks:
|
||||||
- proxy
|
- proxy
|
||||||
ports:
|
ports:
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ NAMESPACE=
|
|||||||
LOGGER=true
|
LOGGER=true
|
||||||
LOGLEVEL=info
|
LOGLEVEL=info
|
||||||
SERVICEDIR=dist/services
|
SERVICEDIR=dist/services
|
||||||
MONGO_URI=mongodb://localhost:27017/threetwo
|
MONGO_URI=mongodb://db:27017/threetwo
|
||||||
TRANSPORTER=nats://nats:4222
|
TRANSPORTER=nats://nats:4222
|
||||||
|
|
||||||
CACHER=Memory
|
CACHER=Memory
|
||||||
|
|||||||
Reference in New Issue
Block a user