-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
60 lines (53 loc) · 1.36 KB
/
docker-compose.yml
File metadata and controls
60 lines (53 loc) · 1.36 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
version: "3.1"
services:
#api-gateway
api-gateway:
build:
context: ./api-gateway
dockerfile: Dockerfile
restart: always
depends_on:
- account-service
ports:
- 8080:8080
# Team Service
team-service:
build:
context: ./team-service
dockerfile: Dockerfile
restart: always
# Account Service
account-service:
build:
context: ./account-service
dockerfile: Dockerfile
restart: always
depends_on:
- account-service-mongo-db
# Account Service Database
account-service-mongo-db:
image: mongo
restart: always
# Exposing port for dev work // Should be removed in final
ports:
- 27017:27017
environment:
MONGO_INITDB_ROOT_USERNAME: ${MONGO_DB_USERNAME}
MONGO_INITDB_ROOT_PASSWORD: ${MONGO_DB_PASSWORD}
# Team Service Database
team-service-mongo-db:
image: mongo
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME: ${MONGO_DB_USERNAME}
MONGO_INITDB_ROOT_PASSWORD: ${MONGO_DB_PASSWORD}
# Mongo Express GUI to view Account service database
mongo-express:
image: mongo-express
restart: always
ports:
- 8081:8081
environment:
ME_CONFIG_MONGODB_ADMINUSERNAME: ${MONGO_DB_USERNAME}
ME_CONFIG_MONGODB_ADMINPASSWORD: ${MONGO_DB_PASSWORD}
ME_CONFIG_MONGODB_SERVER: team-service-mongo-db