[Documentation] Simplify docker-compose documentation + example (#468)

* simplify docker-compose docs + example

* Change note about reverse proxy, add traefik

* Linting
This commit is contained in:
tobi
2022-04-19 12:45:54 +02:00
committed by GitHub
parent 721061b046
commit 0e2f31f4e3
2 changed files with 112 additions and 109 deletions

View File

@@ -2,33 +2,25 @@ version: "3.3"
services:
gotosocial:
image: superseriousbusiness/gotosocial:0.2.0
user: "1000:1000"
image: superseriousbusiness/gotosocial:latest
container_name: gotosocial
user: 1000:1000
networks:
- gotosocial
ports:
- "127.0.0.1:8080:8080"
volumes:
- ./docker-volumes/data:/gotosocial/storage
- ./config.yaml:/config/config.yaml
command: ["--config-path", "/config/config.yaml"]
depends_on:
- gotosocial_postgres
restart: "always"
gotosocial_postgres:
image: postgres:14-alpine
environment:
POSTGRES_DB: gotosocial
POSTGRES_USER: gotosocial
POSTGRES_PASSWORD: # Create a Password for example with "openssl rand -hex 16"
GTS_HOST: example.org
GTS_DB_TYPE: sqlite
GTS_DB_ADDRESS: /gotosocial/storage/sqlite.db
GTS_LETSENCRYPT_ENABLED: "false"
GTS_LETSENCRYPT_EMAIL_ADDRESS: ""
ports:
- "443:8080"
#- "80:80"
volumes:
- ./docker-volumes/db:/var/lib/postgresql/data
- ~/gotosocial/data:/gotosocial/storage
restart: "always"
networks:
- gotosocial
networks:
gotosocial:
ipam:
driver: default
driver: default