-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
56 lines (53 loc) · 1.33 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
---
services:
certificate-proxy:
environment:
SERVER_CONFIG_0: '$DOMAIN_NAME;http://wordpress:80'
image: registry.gitlab.com/psicho/certificate-proxy:1.2.0
ports:
- '80:80'
- '443:443'
restart: 'unless-stopped'
volumes:
- source: certificate
target: /etc/letsencrypt
type: volume
mysql:
# https://stackoverflow.com/questions/55559386/how-to-fix-mbind-operation-not-permitted-in-mysql-error-log
cap_add:
- SYS_NICE
environment:
MYSQL_ROOT_PASSWORD: $MYSQL_ROOT_PASSWORD
WORDPRESS_DB_PASSWORD: $WORDPRESS_DB_PASSWORD
image: mysql:8.0
ports:
- '3306:3306'
restart: 'unless-stopped'
volumes:
- source: ./init-db.sh
target: /docker-entrypoint-initdb.d/init-db.sh
type: bind
- source: mysql_data
target: /var/lib/mysql
type: volume
wordpress:
environment:
WORDPRESS_DB_HOST: mysql
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: $WORDPRESS_DB_PASSWORD
WORDPRESS_DB_NAME: wordpress
image: wordpress:6.1
ports:
- '8080:80'
restart: 'unless-stopped'
volumes:
- source: httpdocs
target: /var/www/html
type: volume
volumes:
certificate:
name: certificate
httpdocs:
name: httpdocs
mysql_data:
name: mysql_data