-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
80 lines (74 loc) · 1.49 KB
/
docker-compose.yml
File metadata and controls
80 lines (74 loc) · 1.49 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
79
80
version: '3.8'
services:
inception_base:
container_name: inception
image: inception:base
build:
context: ./requirements/inception_base
dockerfile: Dockerfile
restart: "no"
nginx:
container_name: nginx
image: nginx:inception
depends_on:
- inception_base
- wordpress
build:
context: ./requirements/nginx
dockerfile: Dockerfile
restart: "unless-stopped"
stop_signal: SIGTERM
ports:
- 443:443
networks:
- netception
volumes:
- WP_Website:/var/www/html
wordpress:
container_name: wordpress
image: wordpress:inception
depends_on:
- inception_base
- mariadb
build:
context: ./requirements/wordpress
dockerfile: Dockerfile
restart: "unless-stopped"
stop_signal: SIGTERM
env_file:
- .env
ports:
- 9000:9000
networks:
- netception
volumes:
- WP_Website:/var/www/html
mariadb:
container_name: mariadb
image: mariadb:inception
depends_on:
- inception_base
build:
context: ./requirements/mariadb
dockerfile: Dockerfile
restart: "unless-stopped"
stop_signal: SIGTERM
env_file:
- .env
ports:
- 3306-3306
networks:
- netception
volumes:
- WP_Database:/var/lib/mysql
networks:
netception:
name: netception
driver: bridge
volumes:
WP_Website:
name: WP_Website
driver: local
WP_Database:
name: WP_Database
driver: local