2025-01-19 18:31:05 +01:00
|
|
|
services:
|
2025-04-18 08:30:00 +02:00
|
|
|
web:
|
|
|
|
|
image: nginx:alpine
|
|
|
|
|
container_name: dishplanner-nginx
|
2025-04-15 21:56:28 +02:00
|
|
|
restart: unless-stopped
|
2025-04-18 08:30:00 +02:00
|
|
|
depends_on:
|
|
|
|
|
- backend
|
2025-01-19 18:31:05 +01:00
|
|
|
volumes:
|
2025-04-18 08:30:00 +02:00
|
|
|
- ./nginx/nginx.conf:/etc/nginx/conf.d/default.conf:ro
|
|
|
|
|
command: /bin/sh -c "until nslookup backend. ; do sleep 2; done && nginx -g 'daemon off;'"
|
|
|
|
|
ports:
|
|
|
|
|
- "3000:80"
|
2025-04-15 21:56:28 +02:00
|
|
|
|
|
|
|
|
backend:
|
2025-04-21 19:45:13 +02:00
|
|
|
image: jochent/dishplanner-backend:v0.2
|
2025-04-15 21:56:28 +02:00
|
|
|
container_name: dishplanner-backend
|
|
|
|
|
restart: unless-stopped
|
2025-01-19 18:31:05 +01:00
|
|
|
environment:
|
2025-04-15 21:56:28 +02:00
|
|
|
DB_CONNECTION: mysql
|
|
|
|
|
DB_HOST: db
|
|
|
|
|
DB_PORT: 3306
|
|
|
|
|
DB_DATABASE: dishplanner
|
|
|
|
|
DB_USERNAME: dishuser
|
|
|
|
|
DB_PASSWORD: dishpass
|
2025-01-19 18:31:05 +01:00
|
|
|
depends_on:
|
|
|
|
|
- db
|
2025-04-15 21:56:28 +02:00
|
|
|
ports:
|
2025-04-21 19:45:13 +02:00
|
|
|
- "8080:80"
|
2025-01-19 18:31:05 +01:00
|
|
|
|
|
|
|
|
frontend:
|
2025-04-21 19:45:13 +02:00
|
|
|
image: jochent/dishplanner-frontend:v0.2
|
2025-04-15 21:56:28 +02:00
|
|
|
container_name: dishplanner-frontend
|
|
|
|
|
restart: unless-stopped
|
2025-01-19 18:31:05 +01:00
|
|
|
depends_on:
|
|
|
|
|
- backend
|
2025-04-18 08:30:00 +02:00
|
|
|
# ports:
|
|
|
|
|
# - "3000:3000"
|
2025-01-19 18:31:05 +01:00
|
|
|
|
2025-04-18 08:30:00 +02:00
|
|
|
db:
|
|
|
|
|
image: mysql:8.0
|
|
|
|
|
container_name: dishplanner-db
|
|
|
|
|
restart: unless-stopped
|
|
|
|
|
environment:
|
|
|
|
|
MYSQL_ROOT_PASSWORD: rootpassword
|
|
|
|
|
MYSQL_DATABASE: dishplanner
|
|
|
|
|
MYSQL_USER: dishuser
|
|
|
|
|
MYSQL_PASSWORD: dishpass
|
|
|
|
|
volumes:
|
|
|
|
|
- db_data:/var/lib/mysql
|
2025-01-19 18:31:05 +01:00
|
|
|
volumes:
|
2025-04-15 21:56:28 +02:00
|
|
|
db_data:
|
|
|
|
|
|
2025-04-18 08:30:00 +02:00
|
|
|
networks:
|
|
|
|
|
default:
|
|
|
|
|
name: dishplanner-net
|