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 15:41:10 +02:00
|
|
|
dockerfile: 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 11:54:00 +02:00
|
|
|
env_file:
|
|
|
|
- .env
|
2024-10-08 11:01:45 +02:00
|
|
|
restart: unless-stopped
|
|
|
|
|
2024-10-09 15:41:10 +02:00
|
|
|
frontend:
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: Dockerfile-frontend
|
|
|
|
ports:
|
|
|
|
- "3000:3000"
|
|
|
|
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:
|