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}
|
|
|
|
# network_mode: "host"
|
|
|
|
ports:
|
|
|
|
- 5433:5432
|
2021-12-01 15:29:16 +00:00
|
|
|
backend:
|
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
|