TheMathWizard/docker-compose.yml
2023-12-30 10:44:22 +01:00

44 lines
764 B
YAML

version: '3'
services:
web:
#image: math_wizard
build:
dockerfile: Dockerfile.math_wizard
ports:
- "8080:8080"
depends_on:
- db
networks:
- mathwizard-network
db:
build:
dockerfile: Dockerfile.db
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: MatheApp
MYSQL_USER: MatheApp
MYSQL_PASSWORD: password
volumes:
- ./math_wizard_db_data:/var/lib/mysql
networks:
- mathwizard-network
nginx:
image: nginx
ports:
- "80:80"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
depends_on:
- web
networks:
- mathwizard-network
volumes:
math_wizard_db_data:
networks:
mathwizard-network:
driver: bridge