bullish/docker-compose.yml
Ameya Shenoy 0b53c00be8
chore: pick backend settings from env vars
Signed-off-by: Ameya Shenoy <shenoy.ameya@gmail.com>
2021-02-11 22:43:00 +05:30

85 lines
1.5 KiB
YAML

---
version: '3.8'
services:
backend:
image: codingcoffee/bullish-backend
build:
context: ./backend
volumes:
- ./backend:/code
env_file:
- dev.env
depends_on:
- db
- rqworker
- rqscheduler
- redis
ports:
- 8000:8000
frontend:
image: codingcoffee/bullish-frontend
build:
context: ./frontend
volumes:
- ./frontend:/code
ports:
- 8080:8080
redis:
image: redis:6.0.10-alpine3.13
# ports:
# - 6379:6379
rqworker:
image: codingcoffee/bullish-backend
build:
context: ./backend
env_file:
- dev.env
volumes:
- ./backend:/code
command: python manage.py rqworker default
depends_on:
- redis
rqscheduler:
image: codingcoffee/bullish-backend
build:
context: ./backend
env_file:
- dev.env
volumes:
- ./backend:/code
command: python manage.py rqscheduler
depends_on:
- redis
db:
image: postgres:13.1-alpine
restart: unless-stopped
volumes:
- bullish-db-data:/var/lib/postgresql/data/pgdata
# TODO: remove pass
env_file:
- dev.env
# ports:
# - 5432:5432
# pgadmin:
# image: dpage/pgadmin4
# restart: unless-stopped
# depends_on:
# - db
# environment:
# - PGADMIN_LISTEN_PORT=5050
# - PGADMIN_DEFAULT_EMAIL=admin@bullish.io
# - PGADMIN_DEFAULT_PASSWORD=password
# ports:
# - 5050:5050
volumes:
bullish-db-data: