-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (39 loc) · 1012 Bytes
/
docker-compose.yml
File metadata and controls
41 lines (39 loc) · 1012 Bytes
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
networks:
demo:
driver: bridge
services:
mysql:
image: mysql:9.6.0
container_name: mysql
restart: always
ports:
- 3306:3306
environment:
MYSQL_ROOT_PASSWORD: a123456789
MYSQL_DATABASE: demo
volumes:
- ./db-init.sql:/docker-entrypoint-initdb.d/db-init.sql
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
interval: 3s
timeout: 2s
retries: 20
networks:
- demo
# command: --default-authentication-plugin=mysql_native_password
phpmyadmin:
image: phpmyadmin/phpmyadmin:5.2.3
container_name: phpmyadmin
restart: always
ports:
- 8080:80
environment:
PMA_HOST: mysql # Your MySQL container name
PMA_USER: root # Your MySQL user
PMA_PASSWORD: a123456789 # Your MySQL password
PMA_ARBITRARY: 1 # Allows entering database server, username and password manually
networks:
- demo
depends_on:
mysql:
condition: service_healthy