2024-10-08 11:01:45 +02:00
|
|
|
services:
|
|
|
|
db:
|
|
|
|
container_name: apfelnetzwerk-postgres
|
|
|
|
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:
|
|
|
|
container_name: apfelnetzwerk-backend
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
ports:
|
|
|
|
- "8080:8080"
|
|
|
|
networks:
|
|
|
|
- apfelnetzwerk
|
|
|
|
depends_on:
|
2024-10-08 11:01:45 +02:00
|
|
|
- db
|
2024-10-09 11:54:00 +02:00
|
|
|
env_file:
|
|
|
|
- .env
|
2024-10-08 11:01:45 +02:00
|
|
|
restart: unless-stopped
|
|
|
|
|
|
|
|
networks:
|
2024-10-09 11:54:00 +02:00
|
|
|
apfelnetzwerk:
|
2024-10-08 11:01:45 +02:00
|
|
|
driver: bridge
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
db:
|