ApfelNetzwerk/dev-compose.yml

46 lines
769 B
YAML
Raw Normal View History

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