ApfelNetzwerk/dev-compose.yml

38 lines
664 B
YAML
Raw Normal View History

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:
- 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
env_file:
- .env
2024-10-08 11:01:45 +02:00
restart: unless-stopped
networks:
apfelnetzwerk:
2024-10-08 11:01:45 +02:00
driver: bridge
volumes:
db: