-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
63 lines (60 loc) · 1.35 KB
/
docker-compose.yml
File metadata and controls
63 lines (60 loc) · 1.35 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:
php-fpm:
image: ghcr.io/sidecloudgroup/betterbillsplitter:latest
volumes:
- .env:/var/www/html/.env
depends_on:
mariadb:
condition: service_healthy
networks:
- expense-network
healthcheck:
test: [ "CMD", "test", "-f", "/var/run/php/php-fpm.pid" ]
interval: 10s
timeout: 5s
retries: 3
start_period: 60s
restart: always
logging:
options:
max-size: "3m"
max-file: "2"
nginx:
image: nginx:latest
ports:
- "127.0.0.1:${WEB_PORT}:80"
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
depends_on:
php-fpm:
condition: service_healthy
networks:
- expense-network
restart: always
logging:
options:
max-size: "3m"
max-file: "2"
mariadb:
image: mariadb:latest
volumes:
- ./data/mariadb/data:/var/lib/mysql
- ./data/mariadb/conf:/etc/mysql/conf.d
env_file:
- .env
networks:
- expense-network
restart: always
healthcheck:
test: [ "CMD", "mariadb-admin", "-h", "localhost", "-u${MARIADB_USER}", "-p${MARIADB_PASSWORD}", "ping" ]
interval: 10s
timeout: 5s
retries: 3
start_period: 20s
logging:
options:
max-size: "3m"
max-file: "2"
networks:
expense-network:
driver: bridge