forked from IBAX-io/go-ibax
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
52 lines (52 loc) · 1.14 KB
/
docker-compose.yml
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
version: "3.9"
services:
ibax:
env_file:
- .env
hostname: ibax
restart: always
image: ibax/go-ibax:latest
container_name: ibax
volumes:
- ./data/ibax:/mnt/ibax/data
- ./data/cert:/mnt/cert
depends_on:
- postgresql
- redis
- centrifugo
links:
- postgresql:postgresql
- redis:redis
- centrifugo:centrifugo
ports:
- "7078:7078"
- "7079:7079"
postgresql:
hostname: postgresql
restart: always
image: postgres:13
redis:
hostname: redis
restart: always
image: redis:5
container_name: redis
ports:
- "6379:6379"
command: redis-server --requirepass ${REDIS_PASSWORD}
centrifugo:
container_name: centrifugo
image: centrifugo/centrifugo:v3
volumes:
- "./data/centrifugo:/centrifugo"
- "./data/cert:/mnt/cert"
command: centrifugo -c config.json --admin --tls=${CENTRIFUGO_TLS}
ports:
- "8000:8000"
ulimits:
nproc: 65536
nofile:
soft: 65536
hard: 65536
#volumes:
# postgresql-data:
# name: postgresql-data