forked from gameap/gameap
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
86 lines (82 loc) · 2.12 KB
/
docker-compose.yml
File metadata and controls
86 lines (82 loc) · 2.12 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
84
85
86
services:
gameap:
image: gameap/gameap:latest
build:
context: .
dockerfile: Dockerfile
args:
VERSION: dev
BUILD_DATE: ${BUILD_DATE:-2025-01-01T00:00:00Z}
container_name: gameap
ports:
- "8025:8025"
environment:
HTTP_HOST: 0.0.0.0
HTTP_PORT: 8025
DATABASE_DRIVER: postgres
DATABASE_URL: postgres://gameap:gameap@postgres:5432/gameap?sslmode=disable
ENCRYPTION_KEY: ${ENCRYPTION_KEY:-change-me-in-production}
AUTH_SECRET: ${AUTH_SECRET:-change-me-in-production}
CACHE_DRIVER: redis
CACHE_REDIS_ADDR: redis:6379
FILES_DRIVER: local
FILES_LOCAL_BASE_PATH: /var/lib/gameap/files
LOGGER_LEVEL: ${LOGGER_LEVEL:-info}
volumes:
- gameap-storage:/var/lib/gameap
- gameap-storage:/var/lib/gameap/files
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
networks:
- gameap-network
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8025/api/health"]
interval: 30s
timeout: 3s
start_period: 10s
retries: 3
postgres:
image: postgres:17-alpine
container_name: gameap-postgres
environment:
POSTGRES_DB: gameap
POSTGRES_USER: gameap
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-gameap}
volumes:
- postgres-data:/var/lib/postgresql/data
networks:
- gameap-network
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "pg_isready -U gameap"]
interval: 10s
timeout: 5s
retries: 5
redis:
image: redis:7-alpine
container_name: gameap-redis
command: redis-server --appendonly yes
volumes:
- redis-data:/data
networks:
- gameap-network
restart: unless-stopped
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
volumes:
gameap-storage:
driver: local
gameap-postgres-data:
driver: local
gameap-redis-data:
driver: local
networks:
gameap-network:
driver: bridge