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

59 lines
1.2 KiB
YAML

version: "2"
#customized for the environment. Requires traefik reverse proxy
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=testpw123
restart: unless-stopped
networks:
- face-recognition
- proxy
ports:
- "5555:5000"
labels:
- traefik.enable=true
- traefik.frontend.rule=Host:face.sguba.de
- traefik.port=5000
- traefik.docker.network=proxy
depends_on:
- minio
minio:
image: minio/minio
restart: unless-stopped
container_name: minio
ports:
- "9009:9000"
environment:
- MINIO_ACCESS_KEY=face-minio
- MINIO_SECRET_KEY=testpw123
networks:
- face-recognition
- proxy
labels:
- traefik.enable=true
- traefik.frontend.rule=Host:face-minio.sguba.de
- traefik.port=9000
- traefik.docker.network=proxy
volumes:
- face_minio_data:/data
- face_minio_config:/root/.minio
command: minio server /data