-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
52 lines (51 loc) · 1.48 KB
/
docker-compose.yaml
File metadata and controls
52 lines (51 loc) · 1.48 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
services:
owr-api:
build:
context: .
dockerfile: Dockerfile
args:
- DATABASE_URL=postgres://postgres:${POSTGRES_PASSWORD}@postgres:5432/postgres
no_cache: true
container_name: owr-api
environment:
- SERVICE_FQDN_OWR_4000
- NODE_ENV=production
- DATABASE_URL=postgres://postgres:${POSTGRES_PASSWORD}@postgres:5432/postgres
- FILESYSTEM=${FILESYSTEM:-local}
- ADMIN_KEY=${ADMIN_KEY}
- S3_ENDPOINT=${S3_ENDPOINT}
- S3_PORT=${S3_PORT}
- S3_USE_SSL=${S3_USE_SSL:-true}
- S3_REGION=${S3_REGION}
- S3_ACCESS_KEY=${S3_ACCESS_KEY}
- S3_SECRET_KEY=${S3_SECRET_KEY}
- S3_BUCKET_NAME=${S3_BUCKET_NAME}
- S3_STORAGE_CLASS=${S3_STORAGE_CLASS:-EXPRESS_ONEZONE}
- S3_BATCH_SIZE=${S3_BATCH_SIZE:-45}
expose:
- 4000
depends_on:
- postgres
volumes:
- owr-cache:/app/.cache
- owr-images:/app/images
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:4000/version" ]
interval: 30s
timeout: 10s
retries: 3
postgres:
image: postgres:17
container_name: owr-postgres
environment:
- POSTGRES_DB=postgres
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_USER=postgres
- POSTGRES_PORT=5432
volumes:
- pg-data:/var/lib/postgresql/data
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}" ]
interval: 30s
timeout: 10s
retries: 3