-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.local.yml
52 lines (51 loc) · 1.29 KB
/
docker-compose.local.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
name: starly-local
services:
postgresql:
image: docker.io/bitnami/postgresql:16.3.0
ports:
- "${DB_PORT}:${DB_PORT}"
volumes:
- "postgresql_data:/bitnami/postgresql"
environment:
- POSTGRESQL_USERNAME=${DB_USER}
- POSTGRESQL_DATABASE=${DB_DATABASE}
- POSTGRESQL_PASSWORD=${DB_PASSWORD}
minio:
image: bitnami/minio:latest
environment:
- MINIO_ROOT_USER=${S3_ACCESS_KEY_ID}
- MINIO_ROOT_PASSWORD=${S3_SECRET_ACCESS_KEY}
ports:
- "${S3_PORT}:${S3_PORT}"
- "9001:9001"
volumes:
- "minio_data:/data"
create_default_minio_bucket:
image: minio/mc
depends_on:
- minio
entrypoint: >
/bin/sh -c "
/usr/bin/mc alias set starly_minio http://minio:${S3_PORT} minio_access_key minio_secret_key;
/usr/bin/mc mb starly_minio/starly;
/usr/bin/mc mc anonymous set public starly_minio/starly;
exit 0;
"
api:
build:
context: .
dockerfile: Dockerfile
tags:
- "registry.gitlab.com/techmely/starly-api:0.0.4"
ports:
- "${API_PORT}:${API_PORT}"
healthcheck:
test: "curl -f http://localhost:${API_PORT}"
interval: 5s
timeout: 5s
retries: 40
depends_on:
- postgresql
volumes:
postgresql_data: {}
minio_data: {}