From fab496ea3d952a2210e6a8e1a203184a5fb2a44c Mon Sep 17 00:00:00 2001 From: xbgmsharp Date: Wed, 7 Jun 2023 12:22:20 +0200 Subject: [PATCH] Add web frontend container and update telegram container env --- .env.example | 1 + docker-compose.yml | 20 +++++++++++++++++++- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/.env.example b/.env.example index 031ed5f..148f0da 100644 --- a/.env.example +++ b/.env.example @@ -14,6 +14,7 @@ PGSAIL_EMAIL_SERVER=localhost #PGSAIL_PUSHOVER_APP_URL= Comment if not use #PGSAIL_TELEGRAM_BOT_TOKEN= Comment if not use PGSAIL_APP_URL=http://localhost +PGSAIL_API_URL=http://localhost # POSTGREST ENV Settings PGRST_DB_URI=postgres://authenticator:${PGSAIL_AUTHENTICATOR_PASSWORD}@127.0.0.1:5432/signalk PGRST_JWT_SECRET=_at_least_32__char__long__random diff --git a/docker-compose.yml b/docker-compose.yml index 75ecdb1..4900db2 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -91,9 +91,27 @@ services: env_file: .env environment: - BOT_TOKEN=${PGSAIL_TELEGRAM_BOT_TOKEN} - - PGSAIL_URL=${PGSAIL_APP_URL} + - PGSAIL_URL=${PGSAIL_API_URL} depends_on: - db + - api + logging: + options: + max-size: 10m + + web: + image: xbgmsharp/postgsail-vuestic + container_name: web + restart: unless-stopped + volumes: + - /etc/resolv.conf:/etc/resolv.conf:ro + ports: + - "3006:8080" + network_mode: "host" + env_file: .env + depends_on: + - db + - api logging: options: max-size: 10m