face-recognition-app/face_recognition/docker-compose.yml

59 lines
1.2 KiB
YAML

version: "2"
networks:
face-recognition:
external: false
proxy:
external:
name: proxy
volumes:
face_minio_data:
driver: local
face_minio_config:
driver: local
services:
flask:
image: face-recognition-flask:latest
container_name: flask
environment:
- s3-adress = minio
- s3-name = face-minio
- s3-password = testpw1
restart: unless-stopped
networks:
- face-recognition
- proxy
ports:
- "5555:5000"
labels:
- traefik.enable=true
- traefik.frontend.rule=Host:face.sguba.de
- traefik.port=5555
- traefik.docker.network=proxy
depends_on:
- minio
minio:
image: minio/minio
restart: unless-stopped
container_name: minio
ports:
- "9999:9000"
environment:
- MINIO_ACCESS_KEY=face-minio
- MINIO_ACCESS_KEY=testpw1
networks:
- face-recognition
- proxy
labels:
- traefik.enable=true
- treafik.frontend.rule=face-minio.sguba.de
- traefik.port=9999
- traeffik.docker.network=proxy
volumes:
- face_minio_data:/data
- face_minio_config:/root/.minio
command: server /mlflow-minio/storage