-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
78 lines (59 loc) · 1.19 KB
/
docker-compose.yml
File metadata and controls
78 lines (59 loc) · 1.19 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
services:
db:
image: mysql:8
restart: always
cap_drop:
- NET_ADMIN
- SYS_ADMIN
deploy:
resources:
limits:
cpus: "0.50"
memory: 1g
env_file:
- .env
environment:
- MYSQL_DATABASE=${WORDPRESS_DB_NAME}
- MYSQL_USER=${WORDPRESS_DB_USER}
- MYSQL_PASSWORD=${WORDPRESS_DB_PASSWORD}
volumes:
- ./app/db:/var/lib/mysql
phpmyadmin:
image: phpmyadmin/phpmyadmin:latest
restart: unless-stopped
cap_drop:
- NET_ADMIN
- SYS_ADMIN
deploy:
resources:
limits:
cpus: "0.25"
memory: 512m
ports:
- 127.0.0.1:${PMA_HTTP_PORT}:80
env_file:
- .env
environment:
- PMA_HOST=db
depends_on:
- db
wordpress:
build:
context: ./wordpress
args:
- WORDPRESS_IMAGE_TAG=${WORDPRESS_IMAGE_TAG}
restart: unless-stopped
cap_drop:
- NET_ADMIN
- SYS_ADMIN
deploy:
resources:
limits:
cpus: "0.30"
memory: 512m
ports:
- 127.0.0.1:${WORDPRESS_HTTP_PORT}:80
volumes:
- ./app/wordpress:/var/www/html
depends_on:
- db