-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdocker-compose.redis.yaml
38 lines (38 loc) · 1.04 KB
/
docker-compose.redis.yaml
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
services:
web:
image: ghcr.io/tronbyt/server:latest
restart: unless-stopped
ports:
- "${SERVER_PORT}:8000" # Map server port on the host to port 8000 in the container
volumes:
- "/etc/localtime:/etc/localtime:ro" # used to sync docker with host time
- users:/app/users
- webp:/app/tronbyt_server/webp
environment:
- SERVER_HOSTNAME=${SERVER_HOSTNAME_OR_IP:?SERVER_HOSTNAME_OR_IP MUST BE SET IN .env FILE !!!!!!!!!!!!!!!!!.}
- SERVER_PORT
- PIXLET_RENDER_PORT1=${PIXLET_SERVE_PORT1}
- SYSTEM_APPS_REPO
- PRODUCTION
- REDIS_URL=redis://redis:6379
healthcheck:
test: ["CMD", "python3", "/app/healthcheck.py", "http://localhost:8000/health"]
interval: 1m30s
timeout: 10s
retries: 3
depends_on:
- redis
redis:
image: redis:7-alpine
restart: unless-stopped
volumes:
- redis:/data
healthcheck:
test: "[ $$(redis-cli ping) = 'PONG' ]"
interval: 60s
timeout: 3s
retries: 3
volumes:
users:
webp:
redis: