]> Untitled Git - public.git/commitdiff
Added prod compose file
authorClifton Palmer <clifton.james.palmer@protonmail.com>
Tue, 31 Oct 2023 21:02:14 +0000 (16:02 -0500)
committerClifton Palmer <clifton.james.palmer@protonmail.com>
Tue, 31 Oct 2023 21:02:14 +0000 (16:02 -0500)
docker-compose-prod.yml [new file with mode: 0644]

diff --git a/docker-compose-prod.yml b/docker-compose-prod.yml
new file mode 100644 (file)
index 0000000..79bcf02
--- /dev/null
@@ -0,0 +1,31 @@
+# requires variable config loading, such as:
+# docker stack deploy -c <(docker-compose config) public
+#
+# also needs an .env file with some variables!
+
+version: '3'
+networks:
+    proxy:
+        external: true
+services:
+    public:
+        image: cjpalmer/public:1.2.3
+        volumes:
+        - ${SHARE_ROOT}:/storage
+        - public_data:/usr/local/apache2/htdocs
+        - httpd_users:/usr/local/apache2/auth
+        environment:
+        - PUBLIC_ROOT_DIR=/storage
+        - PUBLIC_LINK_DIR=/usr/local/apache2/htdocs
+        - PUBLIC_FQDN_OVERRIDE=https://public.purplebirdman.com
+        networks:
+        - proxy
+volumes:
+    public_data:
+        driver: local
+        driver_opts:
+            o: bind
+            type: none
+            device: /mnt/public_data
+    httpd_users:
+        driver: local