-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
47 lines (45 loc) · 1.23 KB
/
Copy pathcompose.yml
File metadata and controls
47 lines (45 loc) · 1.23 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
services:
db:
image: postgres:18
environment:
POSTGRES_USER: halite
POSTGRES_PASSWORD: halite
POSTGRES_DB: halite
volumes:
- halite-pg:/var/lib/postgresql
healthcheck:
test: ["CMD", "pg_isready", "-U", "halite"]
interval: 5s
timeout: 3s
retries: 10
app:
build:
context: .
args:
# Stamps the sidebar footer with the deployed commit. Set BUILD_HASH in
# the build environment (e.g. `BUILD_HASH=$(git rev-parse HEAD) docker
# compose build`); unset falls back to "Dev" in the UI.
BUILD_HASH: ${BUILD_HASH:-}
environment:
DATABASE_URL: postgresql+asyncpg://halite:halite@db:5432/halite
COOKIE_SECRET: ${COOKIE_SECRET:?Run scripts/gen-bootstrap-secret.sh and set COOKIE_SECRET}
COOKIE_SECURE: ${COOKIE_SECURE:-true}
HALITE_STATIC_DIR: /app/frontend/dist
depends_on:
db:
condition: service_healthy
ports:
- "8080:8080"
healthcheck:
test:
[
"CMD",
"python",
"-c",
"import urllib.request; urllib.request.urlopen('http://localhost:8080/healthz')",
]
interval: 10s
timeout: 3s
retries: 6
volumes:
halite-pg: