-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yml
59 lines (59 loc) · 1.31 KB
/
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
services:
app:
build:
context: .
depends_on:
db:
condition: service_healthy
s3:
condition: service_healthy
restart: unless-stopped
networks:
- nginx_default
migrator:
build:
context: .
dockerfile: migrations.dockerfile
depends_on:
db:
condition: service_healthy
s3:
condition: service_healthy
restart: no
networks:
- nginx_default
db:
image: postgres:16
restart: unless-stopped
environment:
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_DB: ${DB_NAME}
volumes:
- ./data/db:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${DB_USER} -d ${DB_NAME}"]
interval: 5s
timeout: 5s
retries: 5
networks:
- nginx_default
s3:
image: bitnami/minio:2024
restart: unless-stopped
environment:
MINIO_ROOT_USER: ${S3_USER}
MINIO_ROOT_PASSWORD: ${S3_PASSWORD}
MINIO_DEFAULT_BUCKETS: ${S3_NAME}
volumes:
- ./data/s3:/bitnami/minio/data
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 5s
timeout: 5s
retries: 5
networks:
- nginx_default
networks:
nginx_default:
external: true