forked from nhuson/microservice-GRPC-Gin-Golang
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
61 lines (60 loc) · 1.34 KB
/
docker-compose.yaml
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
version: "3.3"
services:
mongodb-user:
image: mongo:latest
container_name: "user_db"
environment:
- MONGO_DATA_DIR=/data/db
volumes:
- ./data/db:/data/db
ports:
- 27017:27017
networks:
- backend-go
# users:
# restart: always
# container_name: user_service
# build:
# context: .
# dockerfile: Dockerfile
# args:
# - SERVICE=users
# - PORT=2000
# depends_on:
# - "mongodb-user"
# ports:
# - "2000:2000"
# environment:
# APP_NAME: "Micro-GRPC"
# APP_ENV: "development"
# PORT: "2000"
# SERVICE_NAME: "User service"
# USER_MONGO_URL: "mongodb://mongodb-user:27017/users"
# SECRET_KEY: "secretgomrico"
# networks:
# - backend-go
# gateway:
# restart: always
# container_name: gateway_service
# build:
# context: .
# dockerfile: Dockerfile
# args:
# - SERVICE=gateway
# - PORT=8080
# depends_on:
# - "users"
# ports:
# - "8080:8080"
# environment:
# APP_NAME: "Micro-GRPC"
# APP_ENV: "development"
# PORT: "8080"
# SERVICE_NAME: "Gateway service"
# USER_SERVICE: "users:2000"
# SECRET_KEY: "secretgomrico"
# networks:
# - backend-go
networks:
backend-go:
backend-go-post: