-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
37 lines (35 loc) · 936 Bytes
/
compose.yaml
File metadata and controls
37 lines (35 loc) · 936 Bytes
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
services:
app:
build:
context: .
dockerfile: Dockerfile
ports:
- "${PORT:-3001}:3001"
env_file: .env
environment:
DATABASE_URL: "postgres://postgres:${DB_PASSWORD:-password}@db:5432/${DB_NAME:-dinerzflow_images}"
SECRET_KEY: ${SECRET_KEY}
BASE_URL: ${BASE_URL}
STORAGE_DIR: ${STORAGE_DIR:-storage}
RUST_LOG: ${RUST_LOG:-info}
volumes:
- ./storage:/app/storage
depends_on:
db:
condition: service_healthy
db:
image: postgres:16-alpine
environment:
POSTGRES_PASSWORD: ${DB_PASSWORD:-password}
POSTGRES_DB: ${DB_NAME:-dinerzflow_images}
ports:
- "${DB_PORT:-5433}:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d ${DB_NAME:-dinerzflow_images}"]
interval: 5s
timeout: 5s
retries: 5
volumes:
postgres_data: