pokemans/docker-compose.yml
2024-03-03 19:59:35 -05:00

38 lines
645 B
YAML

version: '3.8'
services:
web:
build: ./server
ports:
- "5000:5000"
volumes:
- ./server:/app
environment:
- DEBUG=1
- POKEMANS_DB_URL
- PRAW_CLIENT_ID
- PRAW_CLIENT_SECRET
- PRAW_USERNAME
- PRAW_PASSWORD
- POKEMANS_WEBHOOK_URL
command:
python main.py
db:
image: postgres:12
environment:
POSTGRES_DB: pokemans
POSTGRES_USER: pokemans
POSTGRES_PASSWORD: pokemans
ports:
- "5432:5432"
frontend:
build: ./client
ports:
- "3000:80"
volumes:
- ./client:/usr/share/nginx/html
depends_on:
- web