AppFlowy/backend/docker-compose.yml

24 lines
577 B
YAML
Raw Normal View History

2021-12-01 15:29:16 +00:00
version: '3'
services:
2021-12-02 07:58:52 +00:00
db:
image: 'postgres:9.6-alpine'
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
ports:
2021-12-02 10:55:51 +00:00
- "5434:5432"
2021-12-01 15:29:16 +00:00
backend:
2021-12-02 10:55:51 +00:00
restart: on-failure
2021-12-01 15:55:13 +00:00
environment:
2021-12-02 07:58:52 +00:00
- APP_ENVIRONMENT=production
- DATABASE_URL="postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db/${POSTGRES_DB}"
build:
context: ../
dockerfile: ./backend/Dockerfile
image: flowy_backend:${BACKEND_VERSION}
2021-12-01 15:29:16 +00:00
depends_on:
- db
ports:
2021-12-01 15:55:13 +00:00
- 8000:8000