capsul-flask/docker-compose.yml

27 lines
520 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"
db:
image: "postgres:9.6.5"
volumes:
- "postgres:/var/lib/postgresql/data"
environment:
POSTGRES_USER: capsul
POSTGRES_PASSWORD: capsul
POSTGRES_DB: capsul
volumes:
postgres: