-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-debug.yml
More file actions
83 lines (78 loc) · 2.41 KB
/
Copy pathdocker-compose-debug.yml
File metadata and controls
83 lines (78 loc) · 2.41 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: debug-new-api
networks:
proxy:
external: false
name: proxy
debug-internal:
driver: bridge
services:
debug-new-api:
build:
context: ${DEBUG_BUILD_CONTEXT:-.}
container_name: debug-new-api
restart: always
command: --log-dir /app/logs
healthcheck:
test: ["CMD", "wget", "-q", "-O", "/dev/null", "http://localhost:3000/"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
networks:
- proxy
- debug-internal
volumes:
- ~/debug-new-api/data:/data
- ~/debug-new-api/logs:/app/logs
environment:
- SQL_DSN=postgresql://${DEBUG_POSTGRES_USER}:${DEBUG_POSTGRES_PASSWORD}@debug-new-api-postgres:5432/${DEBUG_POSTGRES_DB}
- REDIS_CONN_STRING=redis://debug-new-api-redis
- TZ=Europe/Berlin
- SESSION_SECRET=${DEBUG_SESSION_SECRET}
- CRYPTO_SECRET=${DEBUG_CRYPTO_SECRET}
- ERROR_LOG_ENABLED=true
- BATCH_UPDATE_ENABLED=false
- MEMORY_CACHE_ENABLED=false
- GIN_MODE=debug
- ENABLE_OPENAPI=true
- DEFAULT_LANGUAGE=en # Backend language: en, zh-CN, zh-TW, fr, ja, ru, vi
- RELAY_TIMEOUT=300
- STREAMING_TIMEOUT=600
- GLOBAL_API_RATE_LIMIT_ENABLE=false
- OAUTH_ALLOWED_REDIRECT_ORIGINS=https://unorouter.com,http://localhost:3000
- TRUSTED_REDIRECT_DOMAINS=unorouter.com,localhost
labels:
- "autoheal=true"
- "traefik.enable=true"
- "traefik.docker.network=proxy"
- "traefik.http.routers.newapi-debug.rule=Host(`debug.unorouter.com`)"
- "traefik.http.routers.newapi-debug.entrypoints=websecure"
- "traefik.http.routers.newapi-debug.tls.certresolver=letsencrypt"
- "traefik.http.services.newapi-debug.loadbalancer.server.port=3000"
depends_on:
- debug-new-api-redis
- debug-new-api-postgres
debug-new-api-redis:
image: redis:latest
container_name: debug-new-api-redis
restart: always
networks:
- debug-internal
debug-new-api-postgres:
image: postgres:15
container_name: debug-new-api-postgres
restart: always
networks:
- debug-internal
ports:
- 5441:5432
environment:
POSTGRES_USER: ${DEBUG_POSTGRES_USER}
POSTGRES_PASSWORD: ${DEBUG_POSTGRES_PASSWORD}
POSTGRES_DB: ${DEBUG_POSTGRES_DB}
volumes:
- debug_pg_data:/var/lib/postgresql/data
volumes:
debug_pg_data:
external: true
name: new-api_debug_pg_data