summaryrefslogtreecommitdiff
path: root/example/docker-compose/docker-compose.yaml
diff options
context:
space:
mode:
authorLibravatar 0hlov3 <0hlov3@protonmail.com>2022-03-01 14:17:36 +0100
committerLibravatar GitHub <noreply@github.com>2022-03-01 14:17:36 +0100
commit100f1280a6863fc090e323c11abc40dfdea34078 (patch)
tree58420664dd1874716d2bd67873b0832f1ca9207a /example/docker-compose/docker-compose.yaml
parent[packaging] bump to builder 0.0.3 (#418) (diff)
downloadgotosocial-100f1280a6863fc090e323c11abc40dfdea34078.tar.xz
[documentation] Creates Docker documentation and docker-compose.yaml (#416)
* exludes docker-volume from exemple/docker-compose * Adds an docker-compose.yaml example and adds some readme to the docker.md * Changes Docker-Compose Example * Configures docker-compose.yaml and docker.md * Adds some cosmetics to the Documentation * Adds UserID:GroupID * Describes how to create a new user
Diffstat (limited to 'example/docker-compose/docker-compose.yaml')
-rw-r--r--example/docker-compose/docker-compose.yaml34
1 files changed, 34 insertions, 0 deletions
diff --git a/example/docker-compose/docker-compose.yaml b/example/docker-compose/docker-compose.yaml
new file mode 100644
index 000000000..1a9bdf92b
--- /dev/null
+++ b/example/docker-compose/docker-compose.yaml
@@ -0,0 +1,34 @@
+version: "3.3"
+
+services:
+ gotosocial:
+ image: superseriousbusiness/gotosocial:0.2.0
+ 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"
+ volumes:
+ - ./docker-volumes/db:/var/lib/postgresql/data
+ restart: "always"
+ networks:
+ - gotosocial
+
+networks:
+ gotosocial:
+ ipam:
+ driver: default \ No newline at end of file