mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
24 lines
577 B
YAML
24 lines
577 B
YAML
version: '3'
|
|
services:
|
|
db:
|
|
image: 'postgres:9.6-alpine'
|
|
environment:
|
|
- POSTGRES_USER=${POSTGRES_USER}
|
|
- POSTGRES_DB=${POSTGRES_DB}
|
|
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
|
ports:
|
|
- "5434:5432"
|
|
backend:
|
|
restart: on-failure
|
|
environment:
|
|
- APP_ENVIRONMENT=production
|
|
- DATABASE_URL="postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db/${POSTGRES_DB}"
|
|
build:
|
|
context: ../
|
|
dockerfile: ./backend/Dockerfile
|
|
image: flowy_backend:${BACKEND_VERSION}
|
|
depends_on:
|
|
- db
|
|
ports:
|
|
- 8000:8000
|