38 lines
664 B
YAML
38 lines
664 B
YAML
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:
|
|
- apfelnetzwerk
|
|
restart: unless-stopped
|
|
|
|
backend:
|
|
container_name: apfelnetzwerk-backend
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
ports:
|
|
- "8080:8080"
|
|
networks:
|
|
- apfelnetzwerk
|
|
depends_on:
|
|
- db
|
|
env_file:
|
|
- .env
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
apfelnetzwerk:
|
|
driver: bridge
|
|
|
|
volumes:
|
|
db: |