forked from WalletConnect/node-walletconnect-bridge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
45 lines (39 loc) · 917 Bytes
/
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
version: '3.7'
networks:
default:
volumes:
redis:
letsencrypt:
services:
nginx:
image: ${NGINX_IMAGE}
deploy:
mode: global
# This port format is needed to get real ip address of the client
ports:
- target: 80
published: 80
mode: host
- target: 443
published: 443
mode: host
volumes:
- letsencrypt:/etc/letsencrypt
redis:
image: 'redis:5-alpine'
volumes:
- redis:/data
# This naming of the docker containers completely defeats the
# purpose of Docker swarm and docker load balancing
# so we are instead handling the load balancing with
# our own nginx container
bridge0:
image: ${BRIDGE_IMAGE}
environment:
NODE_ENV: development
REDIS_URL: redis://redis:6379/0
bridge1:
image: ${BRIDGE_IMAGE}
environment:
NODE_ENV: development
REDIS_URL: redis://redis:6379/0