capsul-flask/docker-compose.yml

30 lines
688 B
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-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-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-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: