-
Notifications
You must be signed in to change notification settings - Fork 98
Expand file tree
/
Copy pathdocker-compose-prod.yml
More file actions
99 lines (92 loc) · 2.21 KB
/
docker-compose-prod.yml
File metadata and controls
99 lines (92 loc) · 2.21 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
87
88
89
90
91
92
93
94
95
96
97
98
99
x-common: &common
ulimits:
nofile:
soft: 1048576
hard: 1048576
restart: always
networks:
- remnawave-network
x-logging: &logging
logging:
driver: json-file
options:
max-size: 100m
max-file: 5
x-env: &env
env_file: .env
services:
remnawave:
image: remnawave/backend:2
container_name: remnawave
hostname: remnawave
<<: [*common, *logging, *env]
volumes:
- valkey-socket:/var/run/valkey
ports:
- 127.0.0.1:3000:${APP_PORT:-3000}
- 127.0.0.1:3001:${METRICS_PORT:-3001}
healthcheck:
test: ['CMD-SHELL', 'curl -f http://localhost:${METRICS_PORT:-3001}/health']
interval: 30s
timeout: 5s
retries: 3
start_period: 30s
depends_on:
remnawave-db:
condition: service_healthy
remnawave-redis:
condition: service_healthy
remnawave-db:
image: postgres:17.6
container_name: remnawave-db
hostname: remnawave-db
<<: [*common, *logging, *env]
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
- TZ=UTC
ports:
- 127.0.0.1:6767:5432
volumes:
- remnawave-db-data:/var/lib/postgresql/data
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}']
interval: 3s
timeout: 10s
retries: 3
remnawave-redis:
image: valkey/valkey:9-alpine
container_name: remnawave-redis
hostname: remnawave-redis
<<: [*common, *logging]
volumes:
- valkey-socket:/var/run/valkey
command: >
valkey-server
--save ""
--appendonly no
--maxmemory-policy noeviction
--loglevel warning
--unixsocket /var/run/valkey/valkey.sock
--unixsocketperm 777
--port 0
healthcheck:
test: ['CMD', 'valkey-cli', '-s', '/var/run/valkey/valkey.sock', 'ping']
interval: 3s
timeout: 3s
retries: 3
networks:
remnawave-network:
name: remnawave-network
driver: bridge
external: false
volumes:
remnawave-db-data:
name: remnawave-db-data
driver: local
external: false
valkey-socket:
name: valkey-socket
driver: local
external: false