ApfelNetzwerk/dev-compose.yml

47 lines
987 B
YAML

services:
postgres:
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:
- postgres
environment:
- DATABASE_URL=postgres://apfel:apfel@postgres:5432/apfel
- TOKEN_SECRET=9b2cbd156a7a7e0e530acd780fdd16e8f37fa3fd8122c74a9b7e1ce6fc67980ed0e55572be4e382679a0c13d13f0a651d15e9e877bb579e957c899eb762b1bb4
restart: unless-stopped
frontend:
build:
context: .
dockerfile: docker/Dockerfile-frontend
ports:
- "8000:8000"
depends_on:
- backend
restart: unless-stopped
networks:
apfelnetzwerk:
driver: bridge
volumes:
db: