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

29 lines
611 B
YAML

version: '3'
services:
db:
image: postgres:latest
volumes:
- ./db:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=password
- POSTGRES_USER=bwcontest
- POSTGRES_DB=bwcontest
restart: unless-stopped
web:
build:
context: ../
dockerfile: ./web/Dockerfile
ports:
- 3000:3000
- 7006:7006
environment:
- DATABASE_URL=${DATABASE_URL}
- GIT_PORT=7006
- ORIGIN=${ORIGIN}
- WEB_SANDBOX_SECRET=${WEB_SANDBOX_SECRET}
volumes:
- ./repo:/app/repo
depends_on:
- db
restart: unless-stopped