-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
55 lines (49 loc) · 1.06 KB
/
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
48
49
50
51
52
53
54
55
name: unicorn-utterances-cms
services:
pgsql:
image: postgres:16.3-alpine3.18
env_file:
- .env
volumes:
- ./.data/pgsql:/var/lib/postgresql/data
- ./.data/pgsql_backups:/backups
healthcheck:
test: ["CMD", "pg_isready", "-U", "$POSTGRES_USER"]
interval: 10s
timeout: 5s
retries: 5
ports:
- "5432:5432"
minio:
image: minio/minio
ports:
- "9000:9000" # API Port
- "9001:9001" # Web UI Port
volumes:
- minio_storage:/data
environment:
MINIO_ROOT_USER: ${S3_KEY_ID}
MINIO_ROOT_PASSWORD: ${S3_KEY_SECRET}
command: server --console-address ":9001" /data
worker:
build: worker
env_file:
- .env
environment:
S3_ENDPOINT: http://minio:9000
POSTGRES_URL: postgresql://pgsql:5432/postgres
depends_on:
- minio
- pgsql
api:
build: api
env_file:
- .env
environment:
POSTGRES_URL: postgresql://pgsql:5432/postgres
ports:
- "8080:8080"
depends_on:
- pgsql
volumes:
minio_storage: {}