-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
68 lines (64 loc) · 1.71 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
68 lines (64 loc) · 1.71 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
version: '3.9'
x-minio-config: &x-minio-config
MINIO_ROOT_USER: ${S3_ACCESS_KEY_ID}
MINIO_ROOT_PASSWORD: ${S3_SECRET_ACCESS_KEY}
services:
postgres:
image: postgres:14
container_name: otog-postgres
restart: unless-stopped
environment:
PGPORT: ${DB_PORT}
POSTGRES_DB: ${DB_DATABASE}
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_PASSWORD: ${DB_PASSWORD}
ports:
- ${DB_PORT}:${DB_PORT}
volumes:
- ./volumes/postgres:/var/lib/postgresql/data
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U ${DB_USERNAME}']
interval: 5s
timeout: 5s
retries: 5
networks:
- otog-network
minio:
image: minio/minio:RELEASE.2025-04-22T22-12-26Z
container_name: otog-minio
ports:
- '9000:9000'
- '9001:9001'
volumes:
- ./volumes/minio:/data
environment:
<<: *x-minio-config
command: server --console-address ":9001" /data
healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:9000/minio/health/live']
interval: 3s
timeout: 5s
retries: 10
networks:
- otog-network
create-bucket:
image: minio/mc
container_name: otog-create-bucket
environment:
<<: *x-minio-config
S3_ENDPOINT_URL: http://otog-minio:9000
BUCKET_NAME: otog
entrypoint: >
bash -c '
echo "[mc] Alias server" &&
/usr/bin/mc alias set myminio $${S3_ENDPOINT_URL} $${MINIO_ROOT_USER} $${MINIO_ROOT_PASSWORD} &&
echo "[mc] Create $${BUCKET_NAME} bucket" &&
/usr/bin/mc mb myminio/$${BUCKET_NAME} --ignore-existing'
depends_on:
minio:
condition: service_healthy
networks:
- otog-network
networks:
otog-network:
name: otog-network