toolshed/deploy/docker-compose.prod.yml

54 lines
1.2 KiB
YAML
Raw Normal View History

2024-04-04 20:47:35 +00:00
version: '3.8'
services:
backend:
build:
context: ../backend/
dockerfile: ../deploy/dev/Dockerfile.backend
volumes:
- ../backend:/code
expose:
- 8000
command: bash -c "python configure.py; python configure.py testdata; python manage.py runserver 0.0.0.0:8000 --insecure"
frontend:
build:
context: ../frontend/
dockerfile: ../deploy/dev/Dockerfile.frontend
volumes:
- ../frontend:/app
expose:
- 5173
command: npm run dev -- --host
wiki:
build:
context: ../
dockerfile: deploy/dev/Dockerfile.wiki
volumes:
- ../mkdocs.yml:/wiki/mkdocs.yml
- ../docs:/wiki/docs
expose:
- 8001
command: mkdocs serve --dev-addr=0.0.0.0:8001
nginx:
image: nginx:latest
volumes:
- ./dev/fullchain.pem2:/etc/nginx/nginx.crt
- ./dev/privkey.pem2:/etc/nginx/nginx.key
- ./dev/nginx-instance_a.dev.conf:/etc/nginx/nginx.conf
- ./dev/dns.json:/var/www/dns.json
- ./dev/domains.json:/var/www/domains.json
ports:
- 8080:8080
- 5353:5353
dns:
build:
context: ./dev/
dockerfile: Dockerfile.dns
volumes:
- ./dev/zone.json:/dns/zone.json
expose:
- 8053