summaryrefslogtreecommitdiff
path: root/stacks/dav/compose.yml
diff options
context:
space:
mode:
Diffstat (limited to 'stacks/dav/compose.yml')
-rw-r--r--stacks/dav/compose.yml39
1 files changed, 39 insertions, 0 deletions
diff --git a/stacks/dav/compose.yml b/stacks/dav/compose.yml
new file mode 100644
index 0000000..7e59600
--- /dev/null
+++ b/stacks/dav/compose.yml
@@ -0,0 +1,39 @@
+name: ${_STACK}
+
+networks:
+ net:
+ name: ${_NET}
+ external: true
+ intra:
+
+volumes:
+ data:
+ name: ${_DB_DATA_VOLUME}
+ external: true
+
+services:
+ db:
+ container_name: ${_DB_CONTAINER} # Required for now.
+ image: postgres:16-alpine
+ networks:
+ - intra
+ env_file:
+ - .env
+ - .davis.env
+ - .db.env
+ volumes:
+ - ${data:-.database/}:/var/lib/postgresql/data
+
+ davis:
+ container_name: ${_CONTAINER}
+ image: ghcr.io/tchapi/davis-standalone:latest
+ env_file:
+ - .davis.env
+ - .env
+ networks:
+ - net
+ - intra
+ expose:
+ - 9000
+ depends_on:
+ - db