forked from sabbajohn/Trilha_SQL
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (41 loc) · 1.04 KB
/
docker-compose.yml
File metadata and controls
43 lines (41 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
services:
mysql:
image: mysql:8.0
container_name: trilha_mysql
restart: unless-stopped
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: trilha_suporte
MYSQL_USER: trainee
MYSQL_PASSWORD: trainee123
TZ: America/Sao_Paulo
ports:
- "3306:3306"
volumes:
- mysql_data:/var/lib/mysql
- ./sql:/docker-entrypoint-initdb.d:ro
command:
- --default-authentication-plugin=mysql_native_password
- --sql-mode=STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "127.0.0.1", "-proot"]
interval: 10s
timeout: 5s
retries: 10
start_period: 30s
phpmyadmin:
image: phpmyadmin:5-apache
container_name: trilha_phpmyadmin
restart: unless-stopped
depends_on:
mysql:
condition: service_healthy
environment:
PMA_HOST: mysql
PMA_PORT: 3306
PMA_ARBITRARY: 0
UPLOAD_LIMIT: 32M
ports:
- "8080:80"
volumes:
mysql_data: