-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
47 lines (43 loc) · 970 Bytes
/
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
version: '3.9'
services:
api:
image: skitskni/api:latest
depends_on:
db:
condition: service_healthy
ports:
- '5000:80'
env_file:
- .env
db:
image: postgres
ports:
- '6000:5432'
environment:
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
volumes:
- postgres-data:/var/lib/postgresql/data
depends_on:
- minio
healthcheck:
test: [ "CMD-SHELL", "pg_isready" ]
interval: 5s
timeout: 5s
retries: 5
minio:
image: minio/minio:latest
ports:
- '9000:9000'
- '9001:9001'
volumes:
- minio_data:/data
environment:
- MINIO_ROOT_USER=${S3Service__AccessKey}
- MINIO_ROOT_PASSWORD=${S3Service__SecretKey}
command: server --console-address ":9001" --address ":9000" /data
volumes:
minio_data:
driver: local
postgres-data: