browsertrix/docker-compose.yml
Ilya Kreymer 05c1129fb8
Frontend + Backend Integrated Deployment (K8s only) (#45)
* support running backend + frontend together on k8s
* split nginx container into separate frontend service, which uses nignx-base image and the static frontend files
* add nginx-based frontend image to docker-compose build (for building only, docker-based combined deployment not yet supported)

* backend:
- fix paths for email templates
- chart: support '--set backend_only=1' and '--set frontend_only=1' to only force deploy one or the other
- run backend from root /api in uvicorn
2021-12-03 10:17:22 -08:00

79 lines
1.3 KiB
YAML

version: '3.5'
services:
backend:
build: ./backend
image: registry.digitalocean.com/btrix/webrecorder/browsertrix-api
ports:
- 8000:8000
volumes:
- /var/run/docker.sock:/var/run/docker.sock
env_file:
- ./configs/config.env
depends_on:
- minio
- mongo
frontend:
build: ./frontend
image: registry.digitalocean.com/btrix/webrecorder/browsertrix-frontend
ports:
- 8010:80
redis:
image: redis
command: redis-server --appendonly yes
ports:
- 6379:6379
volumes:
- btrix-redis-data:/data
mongo:
image: mongo
volumes:
- btrix-mongo-data:/data/db
env_file:
- ./configs/config.env
minio:
image: minio/minio
command: server /data --console-address :9001
ports:
- 9000:9000
- 9001:9001
volumes:
- btrix-minio-data:/data
env_file:
- ./configs/config.env
init_minio_bucket:
image: minio/mc
entrypoint: "/bin/sh"
command: ['-c', 'mc mb local/test-bucket; mc policy set public local/test-bucket' ]
env_file:
- ./configs/config.env
depends_on:
- minio
volumes:
btrix-redis-data:
btrix-mongo-data:
btrix-minio-data:
networks:
default:
name: btrix-cloud-net