summaryrefslogtreecommitdiff
path: root/example/docker-compose
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2022-04-19 12:45:54 +0200
committerLibravatar GitHub <noreply@github.com>2022-04-19 12:45:54 +0200
commit0e2f31f4e3ef498f7c454c5bc057335e6e61396d (patch)
treebacaa91b3bfec7fe989c28e583a6e66605cfe4c0 /example/docker-compose
parent[docs] unify nginx explainers and add apache httpd (#455) (diff)
downloadgotosocial-0e2f31f4e3ef498f7c454c5bc057335e6e61396d.tar.xz
[Documentation] Simplify docker-compose documentation + example (#468)
* simplify docker-compose docs + example * Change note about reverse proxy, add traefik * Linting
Diffstat (limited to 'example/docker-compose')
-rw-r--r--example/docker-compose/docker-compose.yaml34
1 files changed, 13 insertions, 21 deletions
diff --git a/example/docker-compose/docker-compose.yaml b/example/docker-compose/docker-compose.yaml
index 1a9bdf92b..88054868b 100644
--- a/example/docker-compose/docker-compose.yaml
+++ b/example/docker-compose/docker-compose.yaml
@@ -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 \ No newline at end of file
+ driver: default