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

59 lines
1.2 KiB
YAML
Raw Permalink Normal View History

2019-05-23 12:59:56 +00:00
version: "2"
#customized for the environment. Requires traefik reverse proxy
2019-05-23 12:59:56 +00:00
networks:
face-recognition:
external: false
proxy:
external:
name: proxy
volumes:
face_minio_data:
driver: local
2019-05-23 13:23:00 +00:00
face_minio_config:
driver: local
2019-05-23 12:59:56 +00:00
services:
flask:
image: face-recognition-flask:latest
container_name: flask
environment:
- s3-adress=minio
- s3-name=face-minio
- s3-password=testpw123
2019-05-23 12:59:56 +00:00
restart: unless-stopped
networks:
- face-recognition
- proxy
ports:
- "5555:5000"
labels:
- traefik.enable=true
- traefik.frontend.rule=Host:face.sguba.de
- traefik.port=5000
2019-05-23 12:59:56 +00:00
- traefik.docker.network=proxy
depends_on:
- minio
minio:
image: minio/minio
restart: unless-stopped
container_name: minio
ports:
- "9009:9000"
2019-05-23 12:59:56 +00:00
environment:
- MINIO_ACCESS_KEY=face-minio
- MINIO_SECRET_KEY=testpw123
2019-05-23 12:59:56 +00:00
networks:
- face-recognition
2019-05-23 13:29:03 +00:00
- proxy
2019-05-23 12:59:56 +00:00
labels:
- traefik.enable=true
- traefik.frontend.rule=Host:face-minio.sguba.de
- traefik.port=9000
- traefik.docker.network=proxy
2019-05-23 12:59:56 +00:00
volumes:
- face_minio_data:/data
2019-05-23 13:23:00 +00:00
- face_minio_config:/root/.minio
command: minio server /data