summaryrefslogtreecommitdiff
path: root/example/docker-compose/docker-compose.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'example/docker-compose/docker-compose.yaml')
-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