-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathdocker-compose.yml
94 lines (89 loc) · 1.97 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
84
85
86
87
88
89
90
91
92
93
94
version: "3.9"
services:
redis:
image: redis:7-alpine
restart: always
elastic:
image: elasticsearch:7.17.13
restart: always
environment:
discovery.type: single-node
ports:
- 9200:9200
volumes:
- elastic:/usr/share/elasticsearch/data
logging:
driver: "json-file"
options:
max-size: "1M"
max-file: "10"
caddy:
build:
context: ./caddy
dockerfile: Dockerfile
restart: always
volumes:
- ./html:/var/www/html
- ./.caddy_data:/data
- ./.caddy_config:/config
- ./conf/basic_auth.conf:/etc/basic_auth.conf
- ./conf/caddyfile_optional.conf:/etc/caddyfile_optional.conf
- ./caddy/etc/Caddyfile:/etc/caddy/Caddyfile
- ./caddy/etc/tls_auto:/etc/tls_auto
- ./caddy/etc/tls_custom:/etc/tls_custom
- ./caddy/etc/tls_cloudflare:/etc/tls_cloudflare
- ./caddy/etc/tls_selfsigned:/etc/tls_selfsigned
- ./mail-acme-challenge:/mail-acme-challenge
ports:
- "80:80"
- "443:443"
- "443:443/udp"
env_file:
- ./conf/caddy.env
- ./conf/caddy_sensitive.env
logging:
driver: "json-file"
options:
max-size: "1M"
max-file: "10"
wp-fpm:
image: wordpress:6-fpm
restart: always
links:
- db
- redis
depends_on:
- db
- redis
volumes:
- html:/var/www/html
- ./conf/php_optional.ini:/usr/local/etc/php/conf.d/php_optional.ini
env_file:
- ./conf/wordpress.env
logging:
driver: "json-file"
options:
max-size: "1M"
max-file: "10"
db:
image: mariadb:11-jammy
restart: always
volumes:
- dbdata:/var/lib/mysql
env_file:
- ./conf/db.env
logging:
driver: "json-file"
options:
max-size: "1M"
max-file: "10"
volumes:
html:
driver: local
driver_opts:
type: none
device: $PWD/html
o: bind
dbdata:
elastic:
driver: local