2019-08-23 08:47:19 -07:00
|
|
|
version: "3"
|
|
|
|
services:
|
|
|
|
|
|
|
|
web:
|
2019-11-26 02:44:14 -08:00
|
|
|
image: ottertune-web
|
|
|
|
container_name: web
|
2019-08-23 08:47:19 -07:00
|
|
|
expose:
|
|
|
|
- "8000"
|
|
|
|
ports:
|
|
|
|
- "8000:8000"
|
|
|
|
links:
|
2019-11-26 02:44:14 -08:00
|
|
|
- backend
|
2019-08-23 08:47:19 -07:00
|
|
|
- rabbitmq
|
|
|
|
depends_on:
|
2019-11-26 02:44:14 -08:00
|
|
|
- backend
|
2019-08-23 08:47:19 -07:00
|
|
|
- rabbitmq
|
|
|
|
environment:
|
2019-11-26 02:44:14 -08:00
|
|
|
DEBUG: 'true'
|
2019-08-23 08:47:19 -07:00
|
|
|
ADMIN_PASSWORD: 'changeme'
|
2019-12-03 18:26:59 -08:00
|
|
|
BACKEND: 'postgresql'
|
2019-11-26 02:44:14 -08:00
|
|
|
DB_NAME: 'ottertune'
|
2019-12-03 18:26:59 -08:00
|
|
|
DB_USER: 'postgres'
|
2019-11-26 02:44:14 -08:00
|
|
|
DB_PASSWORD: 'ottertune'
|
|
|
|
DB_HOST: 'backend'
|
2019-12-03 18:26:59 -08:00
|
|
|
DB_PORT: '5432'
|
2019-11-26 02:44:14 -08:00
|
|
|
DB_OPTS: '{}'
|
|
|
|
MAX_DB_CONN_ATTEMPTS: 30
|
|
|
|
working_dir: /app/website
|
|
|
|
entrypoint: ./start.sh
|
2019-08-23 08:47:19 -07:00
|
|
|
labels:
|
2019-11-26 02:44:14 -08:00
|
|
|
NAME: "ottertune-web"
|
|
|
|
networks:
|
|
|
|
- ottertune-net
|
|
|
|
|
|
|
|
driver:
|
|
|
|
image: ottertune-driver
|
|
|
|
container_name: driver
|
|
|
|
depends_on:
|
|
|
|
- web
|
|
|
|
environment:
|
|
|
|
DEBUG: 'true'
|
|
|
|
working_dir: /app/driver
|
|
|
|
labels:
|
|
|
|
NAME: "ottertune-driver"
|
2019-08-23 08:47:19 -07:00
|
|
|
networks:
|
|
|
|
- ottertune-net
|
|
|
|
|
|
|
|
rabbitmq:
|
|
|
|
image: "rabbitmq:3-management"
|
|
|
|
container_name: rabbitmq
|
|
|
|
restart: always
|
|
|
|
hostname: "rabbitmq"
|
|
|
|
environment:
|
|
|
|
RABBITMQ_DEFAULT_USER: "guest"
|
|
|
|
RABBITMQ_DEFAULT_PASS: "guest"
|
|
|
|
RABBITMQ_DEFAULT_VHOST: "/"
|
|
|
|
expose:
|
|
|
|
- "15672"
|
|
|
|
- "5672"
|
|
|
|
ports:
|
2019-11-26 02:44:14 -08:00
|
|
|
- "15673:15672"
|
|
|
|
- "5673:5672"
|
2019-08-23 08:47:19 -07:00
|
|
|
labels:
|
|
|
|
NAME: "rabbitmq"
|
|
|
|
networks:
|
|
|
|
- ottertune-net
|
2019-12-03 18:26:59 -08:00
|
|
|
|
|
|
|
backend:
|
|
|
|
container_name: backend
|
|
|
|
restart: always
|
|
|
|
image: postgres:9.6
|
|
|
|
environment:
|
|
|
|
POSTGRES_USER: 'postgres'
|
|
|
|
POSTGRES_PASSWORD: 'ottertune'
|
|
|
|
POSTGRES_DB: 'ottertune'
|
|
|
|
expose:
|
|
|
|
- "5432"
|
|
|
|
ports:
|
|
|
|
- "5432:5432"
|
|
|
|
labels:
|
|
|
|
NAME: "ottertune-backend"
|
|
|
|
networks:
|
|
|
|
- ottertune-net
|
|
|
|
|
2019-08-23 08:47:19 -07:00
|
|
|
networks:
|
|
|
|
ottertune-net:
|
|
|
|
driver: bridge
|