-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
68 lines (63 loc) · 1.41 KB
/
docker-compose.yml
File metadata and controls
68 lines (63 loc) · 1.41 KB
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
version: '3.9'
services:
server:
container_name: server
build:
context: .
dockerfile: ./build/server/Dockerfile
restart: always
ports:
- 8080:8080
volumes:
- ./configs/server/config.json:/app/config.json
depends_on:
- subscriber
- mongo
- auth-redis
- did-redis
swagger:
container_name: swagger
build:
context: .
dockerfile: ./build/swagger/Dockerfile
restart: always
ports:
- 1323:1323
mongo:
container_name: mongo
image: mongo:5.0.22
restart: always
ports:
- 27017:27017
volumes:
- mongo-data:/data/db
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: example
auth-redis:
container_name: auth-redis
image: redis:7.2.3-alpine
command: redis-server /usr/local/etc/redis/redis.conf
labels:
- "name=redis"
- "mode=standalone"
restart: always
ports:
- 6379:6379
volumes:
- ./configs/auth-redis/redis.conf:/usr/local/etc/redis/redis.conf
did-redis:
container_name: did-redis
image: redis:7.2.3-alpine
command: redis-server /usr/local/etc/redis/redis.conf
labels:
- "name=redis"
- "mode=standalone"
restart: always
ports:
- 6380:6380
volumes:
- ./configs/did-redis/redis.conf:/usr/local/etc/redis/redis.conf
volumes:
mongo-data:
driver: local