ApfelNetzwerk/dev-compose.yml

47 lines
987 B
YAML
Raw Permalink Normal View History

2024-10-08 11:01:45 +02:00
services:
2024-10-09 15:41:10 +02:00
postgres:
2024-10-08 11:01:45 +02:00
image: postgres
environment:
POSTGRES_DB: apfel
POSTGRES_USER: apfel
POSTGRES_PASSWORD: apfel
PGDATA: /data/postgres
volumes:
- db:/data/postgres
ports:
- "5432:5432"
networks:
- apfelnetzwerk
restart: unless-stopped
backend:
build:
context: .
dockerfile: docker/Dockerfile-backend
ports:
- "8080:8080"
networks:
- apfelnetzwerk
depends_on:
2024-10-09 15:41:10 +02:00
- postgres
environment:
- DATABASE_URL=postgres://apfel:apfel@postgres:5432/apfel
- TOKEN_SECRET=9b2cbd156a7a7e0e530acd780fdd16e8f37fa3fd8122c74a9b7e1ce6fc67980ed0e55572be4e382679a0c13d13f0a651d15e9e877bb579e957c899eb762b1bb4
2024-10-08 11:01:45 +02:00
restart: unless-stopped
2024-10-09 15:41:10 +02:00
frontend:
build:
context: .
dockerfile: docker/Dockerfile-frontend
2024-10-09 15:41:10 +02:00
ports:
- "8000:8000"
2024-10-09 15:41:10 +02:00
depends_on:
- backend
restart: unless-stopped
2024-10-08 11:01:45 +02:00
networks:
apfelnetzwerk:
2024-10-08 11:01:45 +02:00
driver: bridge
volumes:
db: