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: