Write on the margins of the internet. Powered by the AT Protocol.
margin.at
extension
web
atproto
comments
1services:
2 margin:
3 image: ghcr.io/margin-at/margin:latest
4 container_name: margin-at
5 environment:
6 - PORT=8080
7 - DATABASE_URL=postgres://margin:margin@margin-db:5432/margin?sslmode=disable
8 - STATIC_DIR=dist
9 - OAUTH_KEY_PATH=/data/oauth_private_key.pem
10 env_file:
11 - .env
12 volumes:
13 - margin-data:/data
14 depends_on:
15 db:
16 condition: service_healthy
17
18 db:
19 image: postgres:17-alpine
20 container_name: margin-db
21 environment:
22 - POSTGRES_USER=margin
23 - POSTGRES_PASSWORD=margin
24 - POSTGRES_DB=margin
25
26 volumes:
27 - db-data:/var/lib/postgresql/data
28 healthcheck:
29 test: ["CMD-SHELL", "pg_isready -U margin"]
30 interval: 5s
31 timeout: 5s
32 retries: 5
33 restart: always
34
35volumes:
36 db-data:
37 margin-data: