forked from dellxdesq/RegistersProject
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDocker-compose.yml
More file actions
101 lines (93 loc) · 2.38 KB
/
Docker-compose.yml
File metadata and controls
101 lines (93 loc) · 2.38 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
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
98
99
100
101
version: "3.9"
services:
postgres:
image: postgres:17
container_name: postgres
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
minio:
image: minio/minio
container_name: minio
ports:
- "9000:9000"
- "9001:9001"
volumes:
- minio_data:/data
environment:
MINIO_ROOT_USER: ${MINIO_ROOT_USER}
MINIO_ROOT_PASSWORD: ${MINIO_ROOT_PASSWORD}
command: server /data --console-address ":9001"
authservice:
build:
context: .
dockerfile: AuthService/Dockerfile
environment:
- ASPNETCORE_ENVIRONMENT=Development
- Jwt__Key=${JWT_KEY}
- Jwt__Issuer=${JWT_ISSUER}
- Jwt__Audience=${JWT_AUDIENCE}
- ConnectionStrings__AuthDB=Host=postgres;Database=${POSTGRES_DB};Username=${POSTGRES_USER};Password=${POSTGRES_PASSWORD}
depends_on:
- postgres
ports:
- "5000:5000"
registryservice:
build:
context: .
dockerfile: RegistryService/Dockerfile
environment:
- ASPNETCORE_ENVIRONMENT=Development
- Jwt__Key=${JWT_KEY}
- ConnectionStrings__PostgreSQL=Host=postgres;Database=${POSTGRES_DB};Username=${POSTGRES_USER};Password=${POSTGRES_PASSWORD}
depends_on:
- postgres
ports:
- "5004:5004"
storageservice:
build:
context: .
dockerfile: StorageService/Dockerfile
environment:
- ASPNETCORE_ENVIRONMENT=Development
- Jwt__Key=${JWT_KEY}
- Minio__Endpoint=${MINIO_ENDPOINT}
- Minio__AccessKey=${MINIO_ROOT_USER}
- Minio__SecretKey=${MINIO_ROOT_PASSWORD}
depends_on:
- minio
ports:
- "5002:5002"
externalservice:
build:
context: .
dockerfile: ExternalService/Dockerfile
environment:
- ASPNETCORE_ENVIRONMENT=Development
- Jwt__Key=${JWT_KEY}
ports:
- "5006:5006"
apigateway:
build:
context: .
dockerfile: ApiGateway/Dockerfile
environment:
- ASPNETCORE_ENVIRONMENT=Development
- Jwt__Key=${JWT_KEY}
- Jwt__Issuer=${JWT_ISSUER}
- Jwt__Audience=${JWT_AUDIENCE}
ports:
- "8080:8080"
depends_on:
- authservice
- registryservice
- storageservice
- externalservice
volumes:
pgdata:
minio_data: