feat: Add basic structure for live environment
This commit is contained in:
33
compose.live.yml
Normal file
33
compose.live.yml
Normal file
@@ -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:
|
||||
- "${TRYTON_PORT_LIVE:-18020}:8000"
|
||||
- "${PUDB_PORT_LIVE:-8020}:8020"
|
||||
working_dir: /app
|
||||
env_file:
|
||||
- .env
|
||||
volumes:
|
||||
app:
|
||||
attachments:
|
||||
Reference in New Issue
Block a user