-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
63 lines (60 loc) · 1.87 KB
/
docker-compose.yml
File metadata and controls
63 lines (60 loc) · 1.87 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
services:
fair-wp-wordpress:
build:
dockerfile: docker/fair-wp-wordpress/Dockerfile
context: .
target: dev
restart: unless-stopped
volumes:
- .:/app
- ./docker/fair-wp-wordpress/php.local.ini:/usr/local/etc/php/conf.d/php.local.ini
- ./docker/fair-wp-wordpress/Caddyfile:/etc/caddy/Caddyfile
networks:
app-net: ~
fair-net:
aliases:
- wp-web.fair
labels:
- 'traefik.enable=true'
- 'traefik.http.routers.fair-wp.rule=HostRegexp(`^(?i)^((api|beacon)\.)?fair\.localhost$`)'
- 'traefik.http.routers.fair-wp-https.rule=HostRegexp(`^(?i)^((api|beacon)\.)?fair\.localhost$`)'
- 'traefik.http.routers.fair-wp-https.tls=true'
healthcheck:
# healthchecks on the app container are generally useless for dev environments:
# the last thing we want is for traefik to drop the backend because of 500 errors -- we want to see those!
disable: true
# not using curl -f for dev, since a 500 error keeps the container from appearing in traefik
test: ["CMD", "curl", "http://localhost/"]
timeout: 2s
retries: 10
start_period: 10s
start_interval: 1s
fair-wp-db:
image: mariadb@sha256:607835cd628b78e2876f6a586d0ec37b296c47683b31ef750002d3d17d3d8f7a # 12.0.2
restart: unless-stopped
environment:
MYSQL_DATABASE: wp
MYSQL_USER: wp
MYSQL_PASSWORD: password
MYSQL_ROOT_PASSWORD: password
volumes:
- fair-wp-db-vol:/var/lib/mysql
networks:
app-net: ~
fair-net:
aliases:
- wp-db.fair
healthcheck:
test: [ "CMD", "mariadb-admin", "ping", "-h", "localhost", "-u", "root", "-ppassword" ]
timeout: 2s
retries: 10
start_period: 10s
start_interval: 1s
volumes:
fair-wp-db-vol:
networks:
app-net: ~
fair-net:
external: true
traefik:
external: true