-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
118 lines (109 loc) · 2.7 KB
/
Copy pathdocker-compose.yml
File metadata and controls
118 lines (109 loc) · 2.7 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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
version: "3.9"
services:
redis:
image: redis:latest
networks:
- ciplatform
ports:
- 6379:6379
rabbitmq:
image: rabbitmq:3-management
networks:
- ciplatform
ports:
- 5672:5672
- 5673:5673
database:
image: postgres:latest
networks:
- ciplatform
ports:
- 127.0.0.1:7000:5432
environment:
POSTGRES_DB: CIPlatform
POSTGRES_USER: root
POSTGRES_PASSWORD: root
healthcheck:
test: ["CMD-SHELL", "pg_isready -d CIPlatform"]
interval: 15s
timeout: 5s
retries: 10
db_migration:
build:
context: .
dockerfile: tools/DatabaseMigrationTool/Dockerfile
networks:
- ciplatform
depends_on:
database:
condition: service_healthy
environment:
ConnectionString: 'Host=database;Port=5432;Database=CIPlatform;Username=root;Password=root'
ServiceAccountConfiguration__Username: root
ServiceAccountConfiguration__Password: 'omX32LkAmPUGR9qLGA6WGw=='
ServiceAccountConfiguration__IsEnabled: 'true'
webapi:
build:
context: .
dockerfile: src/CIPlatformWebAPI/Dockerfile
networks:
- ciplatform
depends_on:
rabbitmq:
condition: service_started
db_migration:
condition: service_completed_successfully
ports:
- 127.0.0.1:3000:80
environment:
MassTransitConfiguration__Host: rabbitmq
ConnectionString: 'Host=database;Port=5432;Database=CIPlatform;Username=root;Password=root'
RedisConfiguration__ConnectionString: redis
volumes:
- .logs:/logs
manager:
build:
context: .
dockerfile: src/CIPlatformManager/Dockerfile
networks:
- ciplatform
depends_on:
- webapi
ports:
- 3001:80
environment:
ConnectionString: 'Host=database;Port=5432;Database=CIPlatform;Username=root;Password=root'
MassTransitConfiguration__Host: rabbitmq
SignalRConfiguration__Host: http://webapi
RedisConfiguration__ConnectionString: redis
volumes:
- .logs:/logs
worker:
build:
context: .
dockerfile: src/CIPlatformWorker/Dockerfile
networks:
- ciplatform
depends_on:
- manager
privileged: true
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
SignalRConfiguration__Host: http://manager
frontend:
build:
context: .
dockerfile: src/CIPlatformUI/Dockerfile
depends_on:
- webapi
networks:
- ciplatform
ports:
- 4200:80
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
- ./config.json:/usr/share/nginx/html/assets/config/config.json:ro
networks:
ciplatform:
driver: bridge