-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
57 lines (52 loc) · 1.03 KB
/
docker-compose.yml
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
version: '3.3'
services:
db:
# image: mariadb
build:
context: .
dockerfile: docker/Dockerfile_mariadb
restart: always
ports:
- "3306:3306"
volumes:
- db_data:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: 123
# MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
# MYSQL_USER: user
# MYSQL_PASSWORD: 123 command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
LANG: C.UTF-8
networks:
- net-backend
web:
restart: always
build:
context: .
dockerfile: docker/Dockerfile_node
ports:
- "3000:3000"
depends_on:
- "db"
links:
- "db"
networks:
- net-backend
environment:
PMA_HOST: db:3306
phpmyadmin:
depends_on:
- db
image: phpmyadmin/phpmyadmin
restart: always
networks:
- net-backend
ports:
- 80:80
environment:
PMA_HOST: db:3306
MYSQL_ROOT_PASSWORD: 123
networks:
net-backend:
volumes:
db_data:
# wp_data: