Skip to content

Instantly share code, notes, and snippets.

@imax9000
Created April 26, 2024 09:24
Show Gist options
  • Save imax9000/d58581689f3ab2c61cd32f44bfac762a to your computer and use it in GitHub Desktop.
Save imax9000/d58581689f3ab2c61cd32f44bfac762a to your computer and use it in GitHub Desktop.
Ozone docker-compose file. Specify variables in a `./.env` file next to it
services:
postgres:
image: postgres:alpine
restart: unless-stopped
healthcheck:
test: pg_isready -h localhost -U $$POSTGRES_USER
interval: 2s
timeout: 5s
retries: 10
volumes:
- "${DATA_DIR:?please set DATA_DIR in .env file}/postgres:/var/lib/postgresql/data:rw"
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
ozone:
build:
context: .
# image: ghcr.io/bluesky-social/ozone:0.1
restart: unless-stopped
links:
- postgres:db
ports:
- "0.0.0.0:63000:3000"
environment:
OZONE_SERVER_DID: ${OZONE_SERVER_DID}
OZONE_PUBLIC_URL: https://${OZONE_HOSTNAME}
OZONE_ADMIN_DIDS: ${OZONE_ADMIN_DIDS}
OZONE_ADMIN_PASSWORD: ${OZONE_ADMIN_PASSWORD}
OZONE_SIGNING_KEY_HEX: ${OZONE_SIGNING_KEY_HEX}
OZONE_DID_PLC_URL: ${OZONE_DID_PLC_URL}
OZONE_APPVIEW_URL: ${OZONE_APPVIEW_URL}
OZONE_APPVIEW_DID: ${OZONE_APPVIEW_DID}
OZONE_DB_POSTGRES_URL: postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db:5432/${POSTGRES_DB}
OZONE_DB_MIGRATE: 1
LOG_ENABLED: 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment