-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.common.yaml
More file actions
82 lines (76 loc) · 1.93 KB
/
compose.common.yaml
File metadata and controls
82 lines (76 loc) · 1.93 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
services:
frontend:
healthcheck:
test: ["CMD", "wget", "--spider", "--quiet", "http://127.0.0.1:3000"]
timeout: 5s
start_period: 30s
backend:
environment:
- TZ=America/Los_Angeles
healthcheck:
test:
[
"CMD",
"python",
"manage.py",
"health_check",
"health_check",
"--no-http",
]
timeout: 5s
start_period: 30s
database:
image: postgres:18
volumes:
- postgres_data:/var/lib/postgresql
healthcheck:
test: ["CMD", "pg_isready", "-U", "postgres"]
timeout: 5s
start_period: 1m
redis:
image: redis:latest
healthcheck:
test: ["CMD", "redis-cli", "ping"]
timeout: 5s
start_period: 30s
playwright:
command:
[
"sh",
"-c",
"npx -y playwright@$$PLAYWRIGHT_VERSION run-server --port 3000 --host 0.0.0.0",
]
working_dir: /home/pwuser
user: pwuser
init: true
shm_size: 256m
healthcheck:
test: ["CMD", "curl", "-f", "http://127.0.0.1:3000"]
timeout: 5s
start_period: 30s
beat:
environment:
- TZ=America/Los_Angeles
healthcheck:
test: # This is absolute trash but I'm lazy
[
"CMD",
"python",
"-c",
"import glob,sys; sys.exit(0) if any(b'celery' in open(f,'rb').read() and b'beat' in open(f,'rb').read() for f in glob.glob('/proc/[0-9]*/cmdline')) else sys.exit(1)",
]
timeout: 5s
start_period: 30s
worker:
environment:
- TZ=America/Los_Angeles
healthcheck:
test: # This is absolute trash but I'm lazy
[
"CMD",
"python",
"-c",
"import glob,sys; sys.exit(0) if any(b'celery' in open(f,'rb').read() and b'beat' in open(f,'rb').read() for f in glob.glob('/proc/[0-9]*/cmdline')) else sys.exit(1)",
]
timeout: 5s
start_period: 30s