-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
63 lines (60 loc) · 1.47 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
63 lines (60 loc) · 1.47 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
version: '3'
volumes:
wpdata:
driver: local
driver_opts:
type: none
o: bind
device: /home/kamanfo/data/wordpress
mbdata:
driver: local
driver_opts:
type: none
o: bind
device: /home/kamanfo/data/mbdata
services:
mariadb:
build: srcs/requirements/mariadb
container_name: mariadb
restart: always
expose:
- "3306"
volumes:
- mbdata:/var/lib/mysql
networks:
- intra
tty: true
wordpress:
build: srcs/requirements/wordpress
container_name: wordpress
restart: always
volumes:
- wpdata:/var/www/html
expose:
- "9000"
networks:
- intra
tty: true
environment:
DOMAIN_NAME: ${DOMAIN_NAME}
WP_TITLE: ${WP_TITLE}
WP_ADMIN_NAME: ${WP_ADMIN_NAME}
WP_ADMIN_PWD: ${WP_ADMIN_PWD}
WP_ADMIN_EMAIL: ${WP_ADMIN_EMAIL}
WP_USR: ${WP_USR}
WP_PWD: ${WP_PWD}
WP_EMAIL: ${WP_EMAIL}
nginx:
build: srcs/requirements/nginx
container_name: nginx
restart: always
ports:
- "443:443"
volumes:
- wpdata:/var/www/html
networks:
- intra
tty: true
networks:
intra:
driver: bridge