Skip to content

Instantly share code, notes, and snippets.

@watura
Created November 29, 2022 05:05
Show Gist options
  • Save watura/fb6a75712da1567e238bb42a2c5eb317 to your computer and use it in GitHub Desktop.
Save watura/fb6a75712da1567e238bb42a2c5eb317 to your computer and use it in GitHub Desktop.
version: "3"
services:
traefik:
image: arm64v8/traefik:latest
container_name: "traefik"
restart: unless-stopped
ports:
- "80:80"
- "443:443"
volumes:
- "/run/user/1000/docker.sock:/var/run/docker.sock:ro"
- "./traefik:/etc/traefik"
- pem
- key
gotosocial:
image: superseriousbusiness/gotosocial:latest
container_name: gotosocial
user: 1000:1000
environment:
GTS_HOST: ap.wtr.app
GTS_DB_TYPE: postgres
GTS_DB_ADDRESS: db
GTS_DB_USER:
GTS_DB_PASSWD:
GTS_LETSENCRYPT_ENABLED: "false"
GTS_LETSENCRYPT_EMAIL_ADDRESS: ""
GTS_ACCOUNTS_REGISTRATION_OPEN: "false"
ports:
- "9845:8080"
restart: unless-stopped
labels:
- "traefik.enable=true"
- "traefik.http.routers.gotosocial.rule=Host(`ap.wtr.app`)"
- "traefik.http.routers.gotosocial.entrypoints=websecure"
- "traefik.http.routers.gotosocial.tls=true"
extra_hosts:
- "db:192.168.11.101"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment