-
Notifications
You must be signed in to change notification settings - Fork 2
/
prod-docker-compose.yml
60 lines (54 loc) · 1.15 KB
/
prod-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
# Copyright 2020 BULL SAS All rights reserved
version: "3.1"
services:
mongo:
image: mongo:4.0
container_name: mongo
hostname: mongo
volumes:
# tochange
- /shaman/mongo_data:/data/db
- /shaman/mongo_backup:/dump
restart: on-failure
ports:
- "27020:27017"
expose:
- 27017
command: mongod --bind_ip 0.0.0.0 --replSet rs0
mongo_init:
image: mongo:4.0
container_name: mongo_init
restart: on-failure
depends_on:
- mongo
command: >
mongo
--host mongo
--eval 'rs.initiate({_id: "rs0", members: [{_id: 0, host : "mongo:27017"}]})'
ui:
image: sphrbthyk/shaman-ui
container_name: ui
privileged: true
hostname: ui
command: npm run start
ports:
- "3000:3000"
api:
image: sphrbthyk/shaman-api
container_name: api
privileged: true
hostname: api
command: uvicorn shaman_api:app --port 5000 --host 0.0.0.0
ports:
- "5001:5000"
redis:
image: redis:latest
container_name: redis
hostname: redis
restart: on-failure
ports:
- "6379:6379"
expose:
- 6379
volumes:
mongo_data: