-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
77 lines (77 loc) · 1.66 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
# default docker-compose config
# for running a 'dev' deployment of shelves-server
version: '3'
services:
gateway:
build:
context: .
dockerfile: gateway/Dockerfile
image: kexpcapstone/gatewaysvc
environment:
- SHELVESSVCADDR=shelves:80
- LIBRARYSVCADDR=library:80
- TLSCERT=/tls/fullchain.pem
- TLSKEY=/tls/privkey.pem
- DBADDR=mongodb:27017
- REDISADDR=redissvr:6379
- SESSIONKEY=blackcoffee
ports:
- "443:443"
- "80:80"
volumes:
- ./tls:/tls:ro
container_name: gateway
networks:
- dylan
mongodb:
image: "mongo"
container_name: mongodb # to be changed if needed
networks:
- dylan
mongo-seed:
image: "mongo"
container_name: mongo-seed
links:
- mongodb
volumes:
- ./data:/data/seeds
- ./mongo-seed.sh:/usr/local/bin/mongo-seed.sh
command:
- mongo-seed.sh
networks:
- dylan
redissvr:
image: "redis"
container_name: redissvr
networks:
- dylan
library:
build:
context: .
dockerfile: library/Dockerfile
image: kexpcapstone/librarysvc
container_name: library
environment:
- DBADDR=mongodb:27017
- RELEASEDB=library
- RELEASECOLL=releases
- ARTISTCOLL=artists
- LABELCOLL=labels
- GENRECOLL=genres
- NOTECOLL=notes
networks:
- dylan
shelves:
build:
context: .
dockerfile: shelves/Dockerfile
image: kexpcapstone/shelvessvc
container_name: shelves
environment:
- DBADDR=mongodb:27017
- SHELVESDB=shelves
- SHELVESCOLL=shelves
networks:
- dylan
networks:
dylan: