mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
[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:
@@ -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
|
||||
|
Reference in New Issue
Block a user