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:
|
2024-10-09 11:54:00 +02:00
|
|
|
- apfelnetzwerk
|
|
|
|
restart: unless-stopped
|
|
|
|
|
|
|
|
backend:
|
|
|
|
build:
|
|
|
|
context: .
|
2024-10-09 16:52:12 +02:00
|
|
|
dockerfile: docker/Dockerfile-backend
|
2024-10-09 11:54:00 +02:00
|
|
|
ports:
|
|
|
|
- "8080:8080"
|
|
|
|
networks:
|
|
|
|
- apfelnetzwerk
|
|
|
|
depends_on:
|
2024-10-09 15:41:10 +02:00
|
|
|
- postgres
|
2024-10-09 16:52:12 +02:00
|
|
|
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: .
|
2024-10-09 16:52:12 +02:00
|
|
|
dockerfile: docker/Dockerfile-frontend
|
2024-10-09 15:41:10 +02:00
|
|
|
ports:
|
2024-10-09 16:52:12 +02:00
|
|
|
- "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:
|
2024-10-09 11:54:00 +02:00
|
|
|
apfelnetzwerk:
|
2024-10-08 11:01:45 +02:00
|
|
|
driver: bridge
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
db:
|