-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
83 lines (77 loc) · 1.72 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
name: wld
services:
nginx:
build:
context: ./config/nginx
args:
- NGINX_VERSION=${NGINX_VERSION}
container_name: nginx
ports:
- "80:80"
- "443:443"
volumes:
- ./config/certs:/etc/nginx/ssl/certs:ro
- ./sites:/var/www/html
- ./config/nginx/sites:/etc/nginx/conf.d
depends_on:
- mariadb
- php
networks:
- wld-network
php:
build:
context: ./config/php
args:
- PHP_FPM_VERSION=${PHP_FPM_VERSION}
container_name: php
volumes:
- ./sites:/var/www/html
command: ["/bin/sh", "-c", "/wld/after-startup.sh"]
links:
- mariadb
- redis
networks:
- wld-network
mariadb:
container_name: mariadb
build:
context: ./config/mariadb
args:
- MARIADB_VERSION=${MARIADB_VERSION}
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD:-password123!}
- MARIADB_ROOT_PASSWORD=${MARIADB_ROOT_PASSWORD:-password123!}
- MYSQL_ALLOWED_EMPTY_PASSWORD=${MYSQL_ALLOWED_EMPTY_PASSWORD:-no}
- MARIADB_USER=${MARIADB_USER:-wpadmin}
- MARIADB_PASSWORD=${MARIADB_PASSWORD:-password123!}
volumes:
- wld_data:/var/lib/mysql
- ./sites:/sites
networks:
- wld-network
redis:
image: redis:${REDIS_VERSION}
container_name: redis
ports:
- "6379:6379"
volumes:
- redis_data:/data
command: redis-server --requirepass root
networks:
- wld-network
adminer:
container_name: adminer
image: adminer
depends_on:
- mariadb
restart: always
ports:
- 8081:8080
networks:
- wld-network
volumes:
wld_data:
redis_data:
networks:
wld-network:
driver: bridge