From 2511d6ef7abc5a32dc05082382a84eb2dee52a6b Mon Sep 17 00:00:00 2001 From: aserrador Date: Thu, 6 Nov 2025 22:00:01 -0500 Subject: [PATCH] feat: add docker-compose.yaml --- docker-compose.yaml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 docker-compose.yaml diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..01cdda1 --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,33 @@ +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: + - "${TRYTOND_PORT_LIVE:-18020}:8000" + - "${PUDB_PORT_LIVE:-8020}:8020" + working_dir: /app + env_file: + - .env +volumes: + app: + attachments: