-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
74 lines (72 loc) · 1.95 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
version: '3.3'
services:
web:
container_name: web
image: ${DOCKER_USERNAME}/booky-web:latest
depends_on:
- api
ports:
- 5003:80
environment:
ASPNETCORE_ENVIRONMENT: Production
ASPNETCORE_URLS: http://+:80
api:
container_name: api
image: ${DOCKER_USERNAME}/booky-api:latest
depends_on:
- identity-api
- catalog-api
ports:
- 5004:80
environment:
ASPNETCORE_ENVIRONMENT: Production
ASPNETCORE_URLS: http://+:80
catalog-api:
container_name: catalog-api
image: ${DOCKER_USERNAME}/booky-catalog-api:latest
depends_on:
- db
- identity-api
- redis
ports:
- 5001:80
environment:
ASPNETCORE_ENVIRONMENT: Production
ASPNETCORE_URLS: http://+:80
ConnectionStrings__Postgresql: User Id=postgres;Password=postgres;Server=db;Port=5432;Database=CatalogDb;IntegratedSecurity=true;Pooling=true;
ConnectionStrings__Redis: redis:6379
CatalogOptions__PicBaseUrl: http://localhost:5004/c/books/[0]/image/
identity-api:
container_name: identity-api
image: ${DOCKER_USERNAME}/booky-identity-api
depends_on:
- db
ports:
- 5002:80
environment:
ASPNETCORE_ENVIRONMENT: Production
ASPNETCORE_URLS: http://+:80
ConnectionStrings__Postgresql: User Id=postgres;Password=postgres;Server=db;Port=5432;Database=IdentityDb;IntegratedSecurity=true;Pooling=true;
Postgresql__UserId: postgres
Postgresql__UserPassword: postgres
Postgresql__Server: db
Postgresql__Port: 5432
redis:
image: "redis"
container_name: "redis-container"
ports:
- 6379:6379
db:
image: postgres
container_name: db
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_HOST_AUTH_METHOD: trust
ports:
- 5433:5433
restart: always
volumes:
- postgresdata:/var/lib/postgresql/data
volumes:
postgresdata: