-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
97 lines (92 loc) · 2.57 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
version: '3'
services:
user-registry:
build:
context: ./user-registry-service
args:
envfile: .env.example
port: 5505
container_name: user-registry
networks:
- motum-network
environment:
BIND_ADDRESS: 0.0.0.0
PORT: 5505
DATABASE_URL: ${USER_DATABASE_URL}
auth:
build:
context: ./auth-service
args:
envfile: .env.example
port: 5505
service_port: 5506
container_name: auth
networks:
- motum-network
depends_on:
- user-registry
environment:
BIND_ADDRESS: 0.0.0.0
PORT: 5505
SERVICE_PORT: 5506
USER_REGISTRY_URL: "user-registry:5505"
ACCESS_TOKEN_SECRET: ${ACCESS_TOKEN_SECRET}
REFRESH_TOKEN_SECRET: ${REFRESH_TOKEN_SECRET}
DATABASE_URL: ${AUTH_DATABASE_URL}
user:
build:
context: ./user-service
args:
envfile: .env.example
port: 5505
container_name: user
depends_on:
- user-registry
networks:
- motum-network
environment:
BIND_ADDRESS: 0.0.0.0
PORT: 5505
DATABASE_URL: ${USER_DATABASE_URL}
BUCKET_NAME: ${BUCKET_NAME}
session:
build:
context: ./session-service
args:
envfile: .env.example
port: 5505
container_name: session
depends_on:
- auth
networks:
- motum-network
ports:
- ${SESSION_PORT}:5505
environment:
BIND_ADDRESS: 0.0.0.0
PORT: 5505
DATABASE_URL: ${SESSION_DATABASE_URL}
AUTH_VERIFICATION_SERVICE_URL: auth:5506
USER_REGISTRY_SERVICE_URL: "user-registry:5505"
api-gateway:
build:
context: ./api-gateway-service
args:
envfile: .env.example
port: 5505
container_name: api-gateway
networks:
- motum-network
ports:
- ${API_PORT}:5505
depends_on:
- auth
- user
environment:
BIND_ADDRESS: 0.0.0.0
PORT: 5505
AUTH_SERVICE_URL: "auth:5505"
AUTH_VERIFICATION_SERVICE_URL: "auth:5506"
USER_SERVICE_URL: "http://user:5505"
networks:
motum-network: