forked from Adam-Sizzler/cerberus
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
125 lines (116 loc) · 2.86 KB
/
docker-compose.yml
File metadata and controls
125 lines (116 loc) · 2.86 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
x-common: &common
ulimits:
nofile:
soft: 1048576
hard: 1048576
restart: unless-stopped
networks:
- exodus-network
x-logging: &logging
logging:
driver: json-file
options:
max-size: 100m
max-file: 5
x-env: &env
env_file: .env
services:
exodus:
# build:
# context: .
# dockerfile: Dockerfile.panel
image: cerberus:0.0.1
container_name: exodus
hostname: exodus
<<: [*common, *logging, *env]
environment:
- APP_PORT=${APP_PORT:-3000}
- APP_PATH=${APP_PATH:-/panel}
ports:
- 127.0.0.1:${APP_PORT:-3000}:${APP_PORT:-3000}
volumes:
- panel-data:/app/data
depends_on:
exodus-db:
condition: service_healthy
exodus-redis:
condition: service_healthy
exodus-node:
# build:
# context: ../node
# dockerfile: Dockerfile.node
image: cerberus-node:0.0.1
container_name: exodus-node
hostname: exodus-node
<<: [*common, *logging]
ports:
- "9253:9253"
volumes:
- ./backend/node/config.yml:/app/config.yml:ro
- /var/run/docker.sock:/var/run/docker.sock
exodus-subscription:
# build:
# context: ../cerberus-sub
# dockerfile: Dockerfile
image: cerberus-subscription:latest
container_name: exodus-subscription
hostname: exodus-subscription
<<: [*common, *logging, *env]
environment:
- APP_PORT_SUB=${APP_PORT_SUB:-3010}
- SUB_GRPC_ADDRESS=${SUB_GRPC_ADDRESS:-0.0.0.0}
- SUB_GRPC_PORT=${SUB_GRPC_PORT:-2222}
- SUB_GRPC_PATH=${SUB_GRPC_PATH:-/}
ports:
- 127.0.0.1:${APP_PORT_SUB:-3010}:${APP_PORT_SUB:-3010}
depends_on:
exodus:
condition: service_started
exodus-db:
image: postgres:18-alpine
container_name: exodus-db
hostname: exodus-db
<<: [*common, *logging, *env]
environment:
- POSTGRES_USER=${POSTGRES_USER:-postgres}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-postgres}
- POSTGRES_DB=${POSTGRES_DB:-postgres}
- TZ=UTC
ports:
- 127.0.0.1:6868:5432
volumes:
- exodus-db-data:/var/lib/postgresql/data
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}']
interval: 3s
timeout: 10s
retries: 3
exodus-redis:
image: valkey/valkey:9-alpine
container_name: exodus-redis
hostname: exodus-redis
<<: [*common, *logging]
command: >
valkey-server
--save ""
--appendonly no
--maxmemory-policy noeviction
--loglevel warning
healthcheck:
test: ['CMD', 'valkey-cli', 'ping']
interval: 3s
timeout: 3s
retries: 3
networks:
exodus-network:
name: exodus-network
driver: bridge
external: false
volumes:
panel-data:
name: panel-data
driver: local
exodus-db-data:
name: exodus-db-data
driver: local
external: false