Select Git revision
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
docker-compose.yml 906 B
version: '3.8'
services:
backend:
build: ./backend
container_name: backend_app
environment:
- DB_HOST=db
- DB_USER=root
- DB_PASSWORD=rootpassword
- DB_NAME=car_database
volumes:
- ./backend/src:/var/www/html
ports:
- "8000:80"
depends_on:
- db
networks:
- app_network
nginx:
build: ./nginx
container_name: nginx
ports:
- "80:80"
volumes:
- ./backend/src:/var/www/html
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf
depends_on:
- backend
networks:
- app_network
db:
image: mysql:5.7
container_name: db
environment:
MYSQL_ROOT_PASSWORD: rootpassword
MYSQL_DATABASE: car_database
volumes:
- ./database/init.sql:/docker-entrypoint-initdb.d/init.sql
networks:
- app_network
networks:
app_network:
driver: bridge