forked from THM-Health/PILOS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
76 lines (73 loc) · 2.32 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
# For more information: https://laravel.com/docs/sail
version: '3'
x-docker-pilos-common: &pilos-common
env_file: .env
volumes:
- './storage/app:/var/www/html/storage/app'
- './storage/recordings-spool:/var/www/html/storage/recordings-spool'
- './resources/custom:/var/www/html/resources/custom'
- './resources/sass/theme/custom:/var/www/html/resources/sass/theme/custom'
- './app/Auth/config:/var/www/html/app/Auth/config'
- './app/Plugins/Custom:/var/www/html/app/Plugins/Custom'
- './public/images/custom:/var/www/html/public/images/custom'
- './public/build:/var/www/html/public/build'
services:
app:
image: '${CONTAINER_IMAGE:-pilos/pilos:latest}'
ports:
- '127.0.0.1:5000:80'
- '127.0.0.1:9000:81'
<<: *pilos-common
sysctls:
net.core.somaxconn: 65536
net.ipv4.ip_local_port_range: "2000 65535"
net.ipv4.tcp_tw_reuse: 1
net.ipv4.tcp_fin_timeout: 30
healthcheck:
test: curl --fail http://localhost/ping || exit 1
interval: 10s
retries: 6
timeout: 5s
depends_on:
db:
condition: service_healthy
redis:
condition: service_healthy
cron:
image: '${CONTAINER_IMAGE:-pilos/pilos:latest}'
<<: *pilos-common
entrypoint: [ 'pilos-cli', 'run:cron' ]
depends_on:
app:
condition: service_healthy
horizon:
image: '${CONTAINER_IMAGE:-pilos/pilos:latest}'
<<: *pilos-common
entrypoint: [ 'pilos-cli', 'run:horizon' ]
depends_on:
app:
condition: service_healthy
db:
image: 'mariadb:11'
environment:
MYSQL_DATABASE: '${DB_DATABASE}'
MYSQL_USER: '${DB_USERNAME}'
MYSQL_PASSWORD: '${DB_PASSWORD}'
MYSQL_RANDOM_ROOT_PASSWORD: 'true'
volumes:
- './db:/var/lib/mysql'
healthcheck:
test: [ "CMD", "healthcheck.sh", "--connect", "--innodb_initialized" ]
interval: 5s
retries: 12
timeout: 5s
redis:
image: redis:7.2-alpine3.18
restart: unless-stopped
volumes:
- ./redis/data:/data
healthcheck:
test: ["CMD-SHELL", "redis-cli ping | grep PONG"]
interval: 5s
retries: 12
timeout: 5s