-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
53 lines (48 loc) · 946 Bytes
/
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
version: '2.3'
services:
example.com:
depends_on:
- admin.example.com
container_name: example.com
image: example.com
restart: unless-stopped
environment:
VIRTUAL_HOST: example.com
ports:
- 80
networks:
- proxy
- internal
admin.example.com:
depends_on:
- db.example.com
container_name: admin.example.com
image: admin.example.com
restart: unless-stopped
volumes:
- wp_data:/var/www/wp-content
environment:
VIRTUAL_HOST: admin.example.com
FS_METHOD: direct
DB_HOST: db.example.com
ports:
- 80
networks:
- proxy
- internal
db.example.com:
container_name: db.example.com
image: mariadb:10.3
restart: unless-stopped
volumes:
- db_data:/var/lib/mysql
networks:
- internal
volumes:
wp_data:
db_data:
networks:
proxy:
external: true
internal:
external: true