summaryrefslogtreecommitdiffstats
path: root/docker-compose.yml
diff options
context:
space:
mode:
authorlchausmann <jazz-github@zqz.dk>2022-04-22 10:41:55 +0200
committerGitHub <noreply@github.com>2022-04-22 08:41:55 +0000
commita9d1ece0cb2090b54668765f70ec00cd2b3a8554 (patch)
treed91fd046eb9a08b6734f606ebde18ef2606d1f12 /docker-compose.yml
parentb8bdd837eb1585b8b6e0c131c8286082d91c47c6 (diff)
Added docker-compose.yml (#325)
Also added section to how to run your own server. Co-authored-by: Lars Chr. Duus Hausmann <lars.chr@duus-hausmann.dk>
Diffstat (limited to 'docker-compose.yml')
-rw-r--r--docker-compose.yml25
1 files changed, 25 insertions, 0 deletions
diff --git a/docker-compose.yml b/docker-compose.yml
new file mode 100644
index 000000000..07db484fb
--- /dev/null
+++ b/docker-compose.yml
@@ -0,0 +1,25 @@
+version: '3.5'
+services:
+ atuin:
+ restart: always
+ image: ghcr.io/ellie/atuin:main
+ command: server start
+ volumes:
+ - "./config:/config"
+ links:
+ - postgresql:db
+ ports:
+ - 8888:8888
+ environment:
+ ATUIN_HOST: "0.0.0.0"
+ ATUIN_OPEN_REGISTRATION: "true"
+ ATUIN_DB_URI: postgres://atuin:really-insecure@db/atuin
+ postgresql:
+ image: postgres:14
+ restart: unless-stopped
+ volumes: # Don't remove permanent storage for index database files!
+ - "./database:/var/lib/postgresql/data/"
+ environment:
+ POSTGRES_USER: atuin
+ POSTGRES_PASSWORD: really-insecure
+ POSTGRES_DB: atuin