🔧 More configuration changes to docker-compose
This commit is contained in:
10
README.md
10
README.md
@@ -9,9 +9,9 @@ ThreeTwo! is a comic book curation app.
|
|||||||
ThreeTwo! currently is set up as:
|
ThreeTwo! currently is set up as:
|
||||||
|
|
||||||
1. The UI, this repo.
|
1. The UI, this repo.
|
||||||
2. `threetwo-import-service` [https://github.com/rishighan/threetwo-import-service]
|
2. [threetwo-import-service](https://github.com/rishighan/threetwo-import-service)
|
||||||
3. `comicvine-service` [https://github.com/rishighan/comicvine-service]
|
3. [comicvine-service](https://github.com/rishighan/comicvine-service)
|
||||||
4. `threetwo-ui-typings` [https://github.com/rishighan/threetwo-frontend-types] which are the types used across the UI, installable as an `npm` dependency.
|
4. [threetwo-ui-typings](https://github.com/rishighan/threetwo-frontend-types) which are the types used across the UI, installable as an `npm` dependency.
|
||||||
## Docker Instructions
|
## Docker Instructions
|
||||||
|
|
||||||
The recommended approach is to simply use `docker-compose` which spins up containers for the UI and all the associated microservices and data store.
|
The recommended approach is to simply use `docker-compose` which spins up containers for the UI and all the associated microservices and data store.
|
||||||
@@ -22,7 +22,7 @@ Then:
|
|||||||
1. Clone this repo using `git clone https://github.com/rishighan/threetwo.git`
|
1. Clone this repo using `git clone https://github.com/rishighan/threetwo.git`
|
||||||
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` to run the containers in detatched mode
|
3. Run `docker-compose up --build -d` to run the containers in detatched mode
|
||||||
4. For debugging you can leave out the `-d` flag
|
4. For debugging, run `docker-compose up --build`
|
||||||
5. 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. 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`
|
||||||
6. For posterity, check that all containers are up using `docker ps`
|
6. For posterity, check that all containers are up using `docker ps`
|
||||||
|
|
||||||
@@ -49,3 +49,5 @@ For debugging and troubleshooting, you can run this app locally using these step
|
|||||||
|
|
||||||
## Contribution Guidelines
|
## Contribution Guidelines
|
||||||
|
|
||||||
|
See [contribution guidelines](https://github.com/rishighan/threetwo/blob/master/contributing.md)
|
||||||
|
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ services:
|
|||||||
SERVICES: api
|
SERVICES: api
|
||||||
env_file: ./docker-env/comicvine-service.env
|
env_file: ./docker-env/comicvine-service.env
|
||||||
volumes:
|
volumes:
|
||||||
- 'userdata:/comicvine-service/userdata'
|
- './userdata:/comicvine-service/userdata'
|
||||||
depends_on:
|
depends_on:
|
||||||
- nats
|
- nats
|
||||||
networks:
|
networks:
|
||||||
@@ -36,6 +36,8 @@ services:
|
|||||||
container_name: comicvine-service
|
container_name: comicvine-service
|
||||||
environment:
|
environment:
|
||||||
SERVICES: comicvine
|
SERVICES: comicvine
|
||||||
|
volumes:
|
||||||
|
- './userdata:/comicvine-service/userdata'
|
||||||
env_file: ./docker-env/comicvine-service.env
|
env_file: ./docker-env/comicvine-service.env
|
||||||
networks:
|
networks:
|
||||||
- proxy
|
- proxy
|
||||||
@@ -51,8 +53,8 @@ services:
|
|||||||
SERVICES: api
|
SERVICES: api
|
||||||
env_file: ./docker-env/threetwo-import-service.env
|
env_file: ./docker-env/threetwo-import-service.env
|
||||||
volumes:
|
volumes:
|
||||||
- 'userdata:/threetwo-import-service/userdata'
|
- './userdata:/threetwo-import-service/userdata'
|
||||||
- 'comics:/threetwo-import-service/comics'
|
- './comics:/threetwo-import-service/comics'
|
||||||
depends_on:
|
depends_on:
|
||||||
- nats
|
- nats
|
||||||
- mongodb
|
- mongodb
|
||||||
@@ -69,6 +71,9 @@ services:
|
|||||||
- nats
|
- nats
|
||||||
environment:
|
environment:
|
||||||
SERVICES: import
|
SERVICES: import
|
||||||
|
volumes:
|
||||||
|
- './userdata:/threetwo-import-service/userdata'
|
||||||
|
- './comics:/threetwo-import-service/comics'
|
||||||
env_file: ./docker-env/threetwo-import-service.env
|
env_file: ./docker-env/threetwo-import-service.env
|
||||||
networks:
|
networks:
|
||||||
- proxy
|
- proxy
|
||||||
@@ -78,6 +83,9 @@ services:
|
|||||||
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
|
||||||
|
volumes:
|
||||||
|
- './userdata:/threetwo-import-service/userdata'
|
||||||
|
- './comics:/threetwo-import-service/comics'
|
||||||
depends_on:
|
depends_on:
|
||||||
- mongodb
|
- mongodb
|
||||||
- nats
|
- nats
|
||||||
@@ -116,8 +124,6 @@ networks:
|
|||||||
external: true
|
external: true
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
userdata:
|
|
||||||
comics:
|
|
||||||
mongodb_data:
|
mongodb_data:
|
||||||
driver: local
|
driver: local
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
NAMESPACE=
|
|
||||||
LOGGER=true
|
LOGGER=true
|
||||||
LOGLEVEL=info
|
LOGLEVEL=info
|
||||||
SERVICEDIR=dist/services
|
SERVICEDIR=dist/services
|
||||||
|
|||||||
@@ -1,9 +1,8 @@
|
|||||||
NAMESPACE=
|
|
||||||
LOGGER=true
|
LOGGER=true
|
||||||
LOGLEVEL=info
|
LOGLEVEL=info
|
||||||
SERVICEDIR=dist/services
|
SERVICEDIR=dist/services
|
||||||
MONGO_URI=mongodb://db:27017/threetwo
|
MONGO_URI=mongodb://db:27017/threetwo
|
||||||
TRANSPORTER=nats://nats:4222
|
TRANSPORTER=nats://nats:4222
|
||||||
|
CALIBRE_PATH=/opt/calibre
|
||||||
CACHER=Memory
|
CACHER=Memory
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user