bw-hspc-contest-env/web/docker-compose.yml

28 lines
608 B
YAML
Raw Normal View History

2023-10-15 14:17:45 -04:00
version: '3'
services:
db:
image: postgres:latest
volumes:
- ./db:/var/lib/postgresql/data
environment:
2024-02-17 14:02:30 -05:00
- POSTGRES_PASSWORD=password
- POSTGRES_USER=bwcontest
- POSTGRES_DB=bwcontest
2024-01-16 19:54:32 -05:00
restart: unless-stopped
2023-10-15 14:17:45 -04:00
web:
build:
context: ../
dockerfile: ./web/Dockerfile
2023-10-15 14:17:45 -04:00
ports:
- 3000:3000
- 7006:7006
environment:
2024-02-17 14:02:30 -05:00
- DATABASE_URL=postgresql://bwcontest:password@db:5432/bwcontest
2023-10-15 14:17:45 -04:00
- GIT_PORT=7006
- ORIGIN=http://127.0.0.1:3000
volumes:
- ./repo:/app/repo
depends_on:
- db
2024-01-16 19:54:32 -05:00
restart: unless-stopped