bullish/docker-compose.yml

63 lines
1.1 KiB
YAML
Raw Normal View History

---
version: '3.8'
services:
backend:
image: codingcoffee/bullish-backend
build:
context: ./backend
volumes:
- ./backend:/code
depends_on:
- db
- 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
db:
image: postgres:13.1-alpine
restart: unless-stopped
volumes:
- bullish-db-data:/var/lib/postgresql/data/pgdata
# TODO: remove pass
environment:
- PGDATA=/var/lib/postgresql/data/pgdata
- POSTGRES_SERVER=db
- POSTGRES_USER=bullish
- POSTGRES_PASSWORD=password
- POSTGRES_DB=bullish
# 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: