This repository has been archived by the owner on Aug 4, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 94
/
docker-compose.yml
84 lines (80 loc) · 2.26 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
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
version: '2.2'
services:
signal_database:
image: postgres:11
container_name: postgres_database
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_MULTIPLE_DATABASES: abusedb, accountdb, keysdb, messagedb
PGDATA: /var/lib/postgresql/data/pgdata
ports:
- '5432:5432'
volumes:
- ./postgres_database:/var/lib/postgresql/data
- ./pg-init-scripts:/docker-entrypoint-initdb.d
redis_main:
image: redis:5
container_name: redis_main
restart: always
ports:
- '6379:6379'
volumes:
- ./redis_main:/data
redis_replication:
image: redis:5
container_name: redis_replication
restart: always
command: redis-server --port 6380
ports:
- '6380:6380'
volumes:
- ./redis_replication:/data
# Remove lines below if you don't plan to use NginX in container mode or don't have SSL certificate
nginx:
image: nginx:1.20
container_name: nginx
restart: always
ports:
- 80:80
- 443:443
volumes:
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf
- ./nginx/private.key:/etc/nginx/cert/private.key
- ./nginx/certificate.crt:/etc/nginx/cert/certificate.crt
# Remove lines below if you don't plan to use CoTurn in container mode
coturn:
image: coturn/coturn:4.5
container_name: coturn
restart: always
ports:
- 3478:3478
- 3478:3478/udp
- 49160-65535:49160-65535/udp
volumes:
- ./coturn/turnserver.conf:/etc/coturn/turnserver.conf
# Remove lines below if you don't want PostgresDB management GUI
signal_adminer:
container_name: signal_adminer
image: adminer:latest
ports:
- 8000:8080
links:
- signal_database
environment:
ADMINER_DESIGN: nette
networks:
- default
# Remove lines below if you don't want Redis management GUI
redis_commander:
container_name: redis_commander
image: rediscommander/redis-commander:latest
hostname: redis-commander
ports:
- 8001:8081
links:
- redis_main
- redis_replication
environment:
- REDIS_HOSTS=main:redis_main:6379, replica:redis_replication:6380