From 5762063ac06f92e19a940a3fda5d843d088c1347 Mon Sep 17 00:00:00 2001 From: blek Date: Sun, 22 Oct 2023 15:37:46 +1000 Subject: [PATCH] production dockerfile --- docker-compose.prod.yml | 44 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 docker-compose.prod.yml diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml new file mode 100644 index 0000000..b052e10 --- /dev/null +++ b/docker-compose.prod.yml @@ -0,0 +1,44 @@ +version: '3.7' +services: + filed: + build: + context: filed + dockerfile: Dockerfile.prod + networks: + bfile: + volumes: + - './filed:/opt/code' + - './filed/config:/etc/filed' + - '/opt/code/target' + - './volatile/files:/opt/user_uploads' + janitord: + build: + context: janitor + dockerfile: Dockerfile.prod + networks: + bfile: + volumes: + - './janitor:/opt/code' + - './volatile/files:/opt/user_uploads' + caddy: + image: caddy:alpine + volumes: + - './conf/caddy:/etc/caddy:ro' + ports: + - 80:80 + networks: + bfile: + redis: + image: redis:alpine + networks: + bfile: + command: [ 'redis-server', '--requirepass', '$REDIS_PASS' ] + ports: + - 6379:6379 + qr: + image: blekii/miniqr + networks: + bfile: + +networks: + bfile: \ No newline at end of file