compose file

This commit is contained in:
fabrice 2019-05-23 14:59:56 +02:00
parent 86aace1e50
commit e41a9ac5a2

View File

@ -0,0 +1,53 @@
version: "2"
networks:
face-recognition:
external: false
proxy:
external:
name: proxy
volumes:
face_minio_data:
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
labels:
- traefik.enable=true
- treafik.frontend.rule=face-minio.sguba.de
- traefik.port=9999
- traeffik.docker.network=proxy
volumes:
- face_minio_data:/data