forked from w3f/1k-validators-be
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.prod.yml
114 lines (103 loc) · 2.15 KB
/
docker-compose.prod.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
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
version: '3'
services:
1kv-core:
build:
context: .
args:
PACKAGE: core
dockerfile: ./Dockerfile
volumes:
- .:/code
ports:
- "3300:3300"
networks:
testing_net:
ipv4_address: 172.28.1.7
1kv-gateway:
build:
context: .
args:
PACKAGE: gateway
dockerfile: ./Dockerfile
volumes:
- .:/code
ports:
- "3301:3301"
networks:
testing_net:
ipv4_address: 172.28.1.8
1kv-telemetry:
build:
context: .
args:
PACKAGE: telemetry
dockerfile: ./Dockerfile
volumes:
- .:/code
networks:
testing_net:
ipv4_address: 172.28.1.9
1kv-worker:
build:
context: .
args:
PACKAGE: worker
dockerfile: ./Dockerfile
volumes:
- .:/code
deploy:
mode: replicated
replicas: 2
restart: unless-stopped
networks:
testing_net:
# ipv4_address: 172.28.1.16
mongo:
image: mongo
restart: always
ports:
- "27017:27017"
networks:
testing_net:
ipv4_address: 172.28.1.12
mongo-express:
image: mongo-express
environment:
- ME_CONFIG_MONGODB_SERVER=mongo
- ME_CONFIG_MONGODB_PORT=27017
- ME_CONFIG_MONGODB_ENABLE_ADMIN=true
- ME_CONFIG_MONGODB_AUTH_DATABASE=admin
- ME_CONFIG_MONGODB_AUTH_USERNAME=${MONGO_ROOT_USER}
- ME_CONFIG_MONGODB_AUTH_PASSWORD=${MONGO_ROOT_PASSWORD}
- ME_CONFIG_BASICAUTH_USERNAME=${MONGOEXPRESS_LOGIN}
- ME_CONFIG_BASICAUTH_PASSWORD=${MONGOEXPRESS_PASSWORD}
depends_on:
- mongo
ports:
- "8888:8081"
networks:
testing_net:
ipv4_address: 172.28.1.14
redis:
image: redis:alpine
expose:
- "6379"
volumes:
- ./redis:/data
restart: always
command: ["redis-server", "--bind", "172.28.1.13", "--port", "6379"]
logging:
driver: "json-file"
options:
max-size: "50m"
networks:
default:
testing_net:
ipv4_address: 172.28.1.13
#volumes:
networks:
testing_net:
ipam:
driver: default
config:
- subnet: 172.28.0.0/16