taskcafe/docker-compose.yml

34 lines
642 B
YAML

version: "3"
services:
web:
image: taskcafe/taskcafe:latest
# build: .
ports:
- "3333:3333"
depends_on:
- postgres
networks:
- taskcafe-test
environment:
TASKCAFE_DATABASE_HOST: postgres
TASKCAFE_MIGRATE: "true"
postgres:
image: postgres:12.3-alpine
restart: always
networks:
- taskcafe-test
environment:
POSTGRES_USER: taskcafe
POSTGRES_PASSWORD: taskcafe_test
POSTGRES_DB: taskcafe
volumes:
- taskcafe-postgres:/var/lib/postgresql/data
volumes:
taskcafe-postgres:
external: false
networks:
taskcafe-test:
driver: bridge