-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
36 lines (32 loc) · 803 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
36 lines (32 loc) · 803 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
version: '3'
services:
service_mysql:
restart: always
container_name: service_mysql
image: mysql:5.7
ports:
- 3306:3306
volumes:
- ./d-mysql:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=dbname
- MYSQL_USER=root
- MYSQL_PASSWORD=root
networks:
- net_myadmin
service_phpmyadmin:
container_name: service_phpmyadmin
image: phpmyadmin/phpmyadmin
ports:
- 81:80
links:
- service_mysql:db
networks:
- net_myadmin
environment:
MYSQL_USERNAME: root
MYSQL_ROOT_PASSWORD: root
networks:
net_myadmin:
driver: bridge