Files
threetwo/docker-compose.yml

134 lines
2.9 KiB
YAML

version: "3.3"
services:
threetwo:
build:
context: .
image: frishi/threetwo
container_name: threetwo-ui
ports:
- "8050:8050"
- "3050:3050"
networks:
- proxy
comicvineapi:
build:
context: https://github.com/rishighan/comicvine-service.git
image: frishi/comicvine-service
container_name: comicvine-api
ports:
- "3080:3080"
environment:
SERVICES: api
env_file: ./docker-env/comicvine-service.env
volumes:
- './userdata:/comicvine-service/userdata'
depends_on:
- nats
networks:
- proxy
comicvine:
build:
context: https://github.com/rishighan/comicvine-service.git
image: frishi/comicvine-service
container_name: comicvine-service
environment:
SERVICES: comicvine
volumes:
- './userdata:/comicvine-service/userdata'
env_file: ./docker-env/comicvine-service.env
networks:
- proxy
importapi:
build:
context: https://github.com/rishighan/threetwo-import-service.git
image: frishi/threetwo-import-service
container_name: threetwo-import-api
ports:
- "3000:3000"
environment:
SERVICES: api
env_file: ./docker-env/threetwo-import-service.env
volumes:
- './userdata:/threetwo-import-service/userdata'
- './comics:/threetwo-import-service/comics'
depends_on:
- nats
- mongodb
networks:
- proxy
import:
build:
context: https://github.com/rishighan/threetwo-import-service.git
image: frishi/threetwo-import-service
container_name: import
depends_on:
- mongodb
- nats
environment:
SERVICES: import
volumes:
- './userdata:/threetwo-import-service/userdata'
- './comics:/threetwo-import-service/comics'
env_file: ./docker-env/threetwo-import-service.env
networks:
- proxy
imagetransformation:
build:
context: https://github.com/rishighan/threetwo-import-service.git
image: frishi/threetwo-import-service
container_name: image-transformation
volumes:
- './userdata:/threetwo-import-service/userdata'
- './comics:/threetwo-import-service/comics'
depends_on:
- mongodb
- nats
environment:
SERVICES: imagetransformation
env_file: ./docker-env/threetwo-import-service.env
networks:
- proxy
mongodb:
image: 'bitnami/mongodb:latest'
container_name: database
networks:
- proxy
ports:
- "27017:27017"
volumes:
- 'mongodb_data:/bitnami/mongodb'
nats:
image: nats:2
container_name: transporter
networks:
- proxy
nginx:
image: nginx
container_name: proxy
ports:
- "80:80"
volumes:
- ./proxy.conf:/etc/nginx/conf.d/default.conf
rabbitmq:
image: 'bitnami/rabbitmq:latest'
container_name: jobs_queue
networks:
proxy:
external: true
volumes:
mongodb_data:
driver: local