Naliia_Dev/compose.live.yml

34 lines
810 B
YAML

services:
db:
image: postgres:12
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
live:
build:
context: .
dockerfile: Dockerfile_Live
args:
TRYTOND_VERSION: ${TRYTOND_VERSION}
depends_on:
- db
command: bash .dev/run.sh
environment:
- DB_NAME=${POSTGRES_DB}
- SRC=/app
- TRYTOND_DATABASE_URI=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${DB_HOSTNAME}:5432/
volumes:
- .:/app
- attachments:/attachments
- ./.dev/pudb.cfg:/root/.config/pudb/pudb.cfg
ports:
- "${TRYTON_PORT_LIVE:-18020}:8000"
- "${PUDB_PORT_LIVE:-8020}:8020"
working_dir: /app
env_file:
- .env
volumes:
app:
attachments: