2024-11-12 21:25:53 +04:00
|
|
|
version: '3.9'
|
|
|
|
|
|
|
|
services:
|
2024-11-13 14:41:01 +04:00
|
|
|
mysql:
|
|
|
|
image: mysql:8.0
|
|
|
|
container_name: employee_db
|
|
|
|
restart: always
|
2024-11-12 21:25:53 +04:00
|
|
|
environment:
|
2024-11-13 14:41:01 +04:00
|
|
|
MYSQL_ROOT_PASSWORD: SuperSecretPasswork2003
|
|
|
|
MYSQL_DATABASE: EmployeeDB
|
2024-11-12 21:25:53 +04:00
|
|
|
ports:
|
2024-11-13 14:41:01 +04:00
|
|
|
- "3306:3306"
|
2024-11-12 21:25:53 +04:00
|
|
|
volumes:
|
2024-11-13 14:41:01 +04:00
|
|
|
- mysql_data:/var/lib/mysql
|
|
|
|
networks:
|
|
|
|
- employee_network
|
2024-11-12 21:25:53 +04:00
|
|
|
|
|
|
|
volumes:
|
2024-11-13 14:41:01 +04:00
|
|
|
mysql_data:
|
|
|
|
|
|
|
|
networks:
|
|
|
|
employee_network:
|
|
|
|
driver: bridge
|