-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
65 lines (59 loc) · 1.11 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
58
59
60
61
62
63
64
65
version: '3.7'
services:
nginx:
#init is to not have any zombie child-processes (exits well when you send SIGINT)
init: true
build:
context: ./srcs/nginx
volumes:
- "php_nginx:/var/www/html"
restart: always
ports:
- "8080:80"
- "443:443"
networks:
- my_net
depends_on:
- mariadb
env_file:
- .env
php:
init: true
build:
context: ./srcs/php
volumes:
- "php_nginx:/var/www/html"
restart: always
networks:
- my_net
env_file:
- .env
depends_on:
- mariadb
mariadb:
init: true
build:
context: ./srcs/mariadb
environment:
WORDPRESS_DB_PASSWORD: root
WORDPRESS_DB_HOST: mariadb:3306
volumes:
- "db_volume:/var/lib/mysql/"
restart: always
networks:
- my_net
networks:
my_net:
volumes:
db_volume:
driver: local
driver_opts:
type: none
o: bind
device: /home/tedison/data/db_volume
php_nginx:
driver: local
driver_opts:
type: none
o: bind
device: /home/tedison/data/volume_phpnginx