refactor: Deploy System

This commit is contained in:
2026-06-18 17:43:49 -05:00
parent 259af7dc81
commit ad8334d11c
23 changed files with 301 additions and 158 deletions

34
docker-compose.live.yaml Normal file
View File

@@ -0,0 +1,34 @@
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}
TRYTON_ADMIN_PASSWORD: ${TRYTON_ADMIN_PASSWORD:-admin}
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.development
volumes:
app:
attachments: