-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
83 lines (76 loc) · 2.07 KB
/
Copy pathcompose.yml
File metadata and controls
83 lines (76 loc) · 2.07 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
name: ${COMPOSE_PROJECT_NAME:-versiontracker}
x-runtime: &runtime
image: ${IMAGE_REPOSITORY:-ghcr.io/soerennb/version-tracker}:${VERSION:?Set VERSION to a concrete v0.x.y release tag}
env_file:
- ${VERSIONTRACKER_ENV_FILE:-.env.docker}
environment:
DB_ROOT_PASSWORD: ""
depends_on:
db:
condition: service_healthy
restart: unless-stopped
init: true
stop_grace_period: 30s
volumes:
- app_storage:/var/www/html/storage
x-logging: &logging
driver: json-file
options:
max-size: 10m
max-file: "3"
services:
app:
<<: *runtime
healthcheck:
test: ["CMD", "curl", "--fail", "--silent", "--show-error", "--max-time", "3", "http://127.0.0.1/up"]
interval: 30s
timeout: 5s
start_period: 30s
retries: 3
logging: *logging
worker:
<<: *runtime
user: www-data
command:
- php
- artisan
- queue:work
- database
- --queue=notifications,imports,default
- --sleep=3
- --tries=3
- --backoff=60
- --timeout=150
- --max-time=3600
logging: *logging
scheduler:
<<: *runtime
user: www-data
command:
- php
- artisan
- schedule:work
logging: *logging
db:
image: ${MARIADB_IMAGE:-mariadb:11.8.8@sha256:24e76fcec8c003a0362d0dd53f4806e7e79458d7fdeaf47437760e19496f5a9c}
environment:
MARIADB_DATABASE: ${DB_DATABASE:?Set DB_DATABASE in .env.docker}
MARIADB_USER: ${DB_USERNAME:?Set DB_USERNAME in .env.docker}
MARIADB_PASSWORD: ${DB_PASSWORD:?Set DB_PASSWORD in .env.docker}
MARIADB_ROOT_PASSWORD: ${DB_ROOT_PASSWORD:?Set DB_ROOT_PASSWORD in .env.docker}
healthcheck:
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
interval: 10s
timeout: 5s
start_period: 30s
retries: 10
restart: unless-stopped
stop_grace_period: 60s
logging: *logging
volumes:
- db_data:/var/lib/mysql
volumes:
app_storage:
name: ${COMPOSE_PROJECT_NAME:-versiontracker}_app_storage
db_data:
name: ${COMPOSE_PROJECT_NAME:-versiontracker}_db_data