-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
120 lines (114 loc) · 2.38 KB
/
Copy pathdocker-compose.yml
File metadata and controls
120 lines (114 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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
version: '3'
services:
web:
build:
context: .
dockerfile: ./src/Web/Dockerfile
target: final
image: scroll-web:${Tag:-latest}
container_name: web
expose:
- 80
ports:
- 5081:80
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_HTTP_PORTS=80
networks:
- scroll-net
depends_on:
- api
develop:
target: develop
watch:
- action: rebuild
path: ./src/
ignore:
- ./src/Api/
api:
build:
context: .
dockerfile: ./src/Api/Dockerfile
target: final
image: scroll-api:${Tag:-latest}
container_name: api
expose:
- 80
ports:
- 5080:80
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_HTTP_PORTS=80
- ConnectionStrings__ScrollDb=Host=db;Port=5432;Database=${POSTGRES_DB};Username=${POSTGRES_USER};Password=${POSTGRES_PASSWORD}
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost/health/"]
interval: 5s
timeout: 2s
retries: 3
networks:
- scroll-net
depends_on:
db:
required: true
condition: service_healthy
minio:
required: false
condition: service_started
develop:
target: develop
watch:
- action: rebuild
path: ./src/
ignore:
- ./src/Web/
- ./src/Web.Client/
db:
container_name: db
image: postgres:latest
volumes:
- pgdata:/var/lib/postgresql/data
environment:
- POSTGRES_DB
- POSTGRES_PASSWORD
user: ${POSTGRES_USER}
expose:
- 5432
ports:
- 5432:5432
networks:
- scroll-net
healthcheck:
test: [ "CMD", "pg_isready" ]
interval: 5s
timeout: 2s
retries: 3
minio:
image: minio/minio
container_name: minio
volumes:
- minio-data:/data
environment:
- MINIO_ROOT_USER
- MINIO_ROOT_PASSWORD
expose:
- 9000
- 9090
ports:
- 9000:9000
- 9090:9090
command: server /data --console-address ":9090"
networks:
- scroll-net
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 5s
timeout: 2s
retries: 3
volumes:
pgdata:
driver: local
minio-data:
driver: local
networks:
scroll-net:
driver: bridge