-
-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (36 loc) · 876 Bytes
/
docker-compose.yml
File metadata and controls
39 lines (36 loc) · 876 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
38
39
services:
margin:
image: ghcr.io/margin-at/margin:latest
container_name: margin-at
environment:
- PORT=8080
- API_PORT=8081
- API_URL=http://localhost:8081
- DATABASE_URL=postgres://margin:margin@margin-db:5432/margin?sslmode=disable
- HOST=0.0.0.0
- OAUTH_KEY_PATH=/data/oauth_private_key.pem
env_file:
- .env
volumes:
- margin-data:/data
depends_on:
db:
condition: service_healthy
db:
image: postgres:17-alpine
container_name: margin-db
environment:
- POSTGRES_USER=margin
- POSTGRES_PASSWORD=margin
- POSTGRES_DB=margin
volumes:
- db-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U margin"]
interval: 5s
timeout: 5s
retries: 5
restart: always
volumes:
db-data:
margin-data: