24 lines
615 B
YAML
24 lines
615 B
YAML
version: '3'
|
|
services:
|
|
postgres_db:
|
|
image: postgres:14
|
|
environment:
|
|
- POSTGRES_USER=${POSTGRES_USER}
|
|
- POSTGRES_DB=${POSTGRES_DB}
|
|
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
|
ports:
|
|
- "5432:5432"
|
|
appflowy_server:
|
|
restart: on-failure
|
|
environment:
|
|
- APP_ENVIRONMENT=production
|
|
- DATABASE_URL="postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db/${POSTGRES_DB}"
|
|
build:
|
|
context: ../../
|
|
dockerfile: ./services/appflowy_server/Dockerfile
|
|
image: appflowy_server:${BACKEND_VERSION}
|
|
depends_on:
|
|
- postgres_db
|
|
ports:
|
|
- 8000:8000
|