capsul-flask/docker-compose.yml

39 lines
1.0 KiB
YAML
Raw Normal View History

2021-07-09 21:27:41 +00:00
---
version: "3.8"
services:
app:
image: 3wordchant/capsul-flask:latest
build: .
volumes:
2021-07-10 12:23:33 +00:00
- "./:/app/code"
2021-07-13 22:35:26 +00:00
- "../tank:/tank"
- "/var/run/libvirt/libvirt-sock:/var/run/libvirt/libvirt-sock"
2021-07-09 21:27:41 +00:00
depends_on:
- db
ports:
- "5000:5000"
environment:
- "POSTGRES_CONNECTION_PARAMETERS=host=db port=5432 user=capsul password=capsul dbname=capsul"
2021-07-13 22:35:26 +00:00
- SPOKE_MODEL=shell-scripts
#- FLASK_DEBUG=1
- BASE_URL=http://localhost:5000
- ADMIN_PANEL_ALLOW_EMAIL_ADDRESSES=3wc.capsul@doesthisthing.work
- VIRSH_DEFAULT_CONNECT_URI=qemu:///system
2021-07-11 10:36:10 +00:00
# The image uses gunicorn by default, let's override it with Flask's
# built-in development server
command: ["flask", "run", "-h", "0.0.0.0", "-p", "5000"]
2021-07-13 22:35:26 +00:00
devices:
- "/dev/kvm:/dev/kvm"
2021-07-09 21:27:41 +00:00
db:
image: "postgres:9.6.5"
volumes:
- "postgres:/var/lib/postgresql/data"
environment:
POSTGRES_USER: capsul
POSTGRES_PASSWORD: capsul
POSTGRES_DB: capsul
volumes:
postgres: