production dockerfile

This commit is contained in:
blek 2023-10-22 15:37:46 +10:00
parent 7af9dfd0d0
commit 5762063ac0
Signed by: blek
GPG Key ID: 14546221E3595D0C
1 changed files with 44 additions and 0 deletions

44
docker-compose.prod.yml Normal file
View File

@ -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: