-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
61 lines (55 loc) · 1.48 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
version: "3"
services:
db:
image: hsheth2/mysql-low-memory
ports:
- "3306:3306"
volumes:
- db_data:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
chat-service:
image: hienpham95/chat-web-api
ports:
- "5000:80"
build:
context: ./chat-services
dockerfile: Dockerfile
environment:
ConnectionStrings__DefaultConnection: ${CHAT_SERVICE_DB_CONNECTION}
IdentityServerOptions__Authority: ${IDENTITY_SERVER_AUTHORITY}
RedisSettings__Host: redis
RedisSettings__Password: ${REDIS_PASSWORD}
depends_on:
- db
- redis
identity-service:
image: hienpham95/chat-identity-service
ports:
- "5001:80"
build:
context: ./identity-server
dockerfile: Dockerfile
environment:
NamedHttpClientFactories__0__BaseAddress: ${CHAT_SERVICE_HOST}
ConnectionStrings__DefaultConnection: ${IDENTITY_SERVICE_DB_CONNECTION}
ClientConfigs__BaseAddress: ${CLIENT_HOST}
ExternalAuthenticationSettings__GoogleClientId: ""
ExternalAuthenticationSettings__GoogleClientSecret: ""
ExternalAuthenticationSettings__FbClientId: ""
ExternalAuthenticationSettings__FbClientSecret: ""
IsDevelopment: "true"
depends_on:
- db
redis:
image: redis
ports:
- "6379:6379"
command: ${REDIS_SERVER_COMMAND}
hostname: redis
volumes:
- redis_data:/data
volumes:
db_data:
redis_data: