-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
51 lines (48 loc) · 1.28 KB
/
docker-compose.yml
File metadata and controls
51 lines (48 loc) · 1.28 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
services:
db:
image: postgres:17-alpine
restart: unless-stopped
environment:
POSTGRES_USER: shoreguard
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:?set POSTGRES_PASSWORD}
POSTGRES_DB: shoreguard
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U shoreguard"]
interval: 5s
timeout: 3s
retries: 5
networks:
- shoreguard-net
deploy:
resources:
limits:
memory: 256M
shoreguard:
build:
context: .
args:
SHOREGUARD_VERSION: ${SHOREGUARD_VERSION:-dev}
restart: unless-stopped
ports:
- "${SHOREGUARD_PORT:-8888}:8888"
environment:
SHOREGUARD_DATABASE_URL: "postgresql+psycopg://shoreguard:${POSTGRES_PASSWORD}@db:5432/shoreguard"
SHOREGUARD_SECRET_KEY: ${SHOREGUARD_SECRET_KEY:?set SHOREGUARD_SECRET_KEY}
SHOREGUARD_ADMIN_PASSWORD: ${SHOREGUARD_ADMIN_PASSWORD:-}
SHOREGUARD_LOG_LEVEL: ${SHOREGUARD_LOG_LEVEL:-info}
SHOREGUARD_ALLOW_REGISTRATION: ${SHOREGUARD_ALLOW_REGISTRATION:-false}
depends_on:
db:
condition: service_healthy
networks:
- shoreguard-net
deploy:
resources:
limits:
memory: 512M
networks:
shoreguard-net:
volumes:
pgdata: