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

28 lines
609 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:
2024-03-11 13:50:02 -04:00
- ${WEB_PORT}:${WEB_PORT}
- ${GIT_PORT}:${GIT_PORT}
2023-10-15 14:17:45 -04:00
environment:
2024-03-11 13:50:02 -04:00
- DATABASE_URL=${DATABASE_URL}
- GIT_PORT=${GIT_PORT}
- ORIGIN=${ORIGIN}:${WEB_PORT}
2023-10-15 14:17:45 -04:00
volumes:
- ./repo:/app/repo
depends_on:
- db
2024-01-16 19:54:32 -05:00
restart: unless-stopped