AppFlowy-Cloud/docker-compose.yml

29 lines
649 B
YAML

version: '3'
services:
postgres:
image: postgres:14
environment:
- POSTGRES_USER=${POSTGRES_USER:-postgres}
- POSTGRES_DB=${POSTGRES_DB:-postgres}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-password}
- POSTGRES_HOST=${POSTGRES_HOST:-postgres}
ports:
- "5433:5432"
redis:
image: redis:7
ports:
- "6380:6379"
appflowy_server:
restart: on-failure
environment:
- APP_ENVIRONMENT=production
build:
context: .
dockerfile: ./Dockerfile
image: appflowy_server:${BACKEND_VERSION:-latest}
depends_on:
- redis
- postgres
ports:
- 8000:8000