diff options
author | NeonXP <i@neonxp.ru> | 2024-01-25 14:46:01 +0300 |
---|---|---|
committer | NeonXP <i@neonxp.ru> | 2024-01-25 14:46:01 +0300 |
commit | bf021003c07e72a981f3e5d5692c9bb6a658b846 (patch) | |
tree | 49b0614c7db69c04a2074858902fb76b0a0a5d28 | |
parent | c831ec7570b93d739ce4a379fb00fba774ce2c64 (diff) |
nquest service
-rw-r--r-- | Makefile | 5 | ||||
-rw-r--r-- | docker-compose.yml | 41 | ||||
-rw-r--r-- | etc/Caddyfile | 4 |
3 files changed, 50 insertions, 0 deletions
@@ -4,3 +4,8 @@ blog: docker compose up blog -d --remove-orphans --force-recreate sleep 3s docker compose restart caddy + +.PHONY: nquest +nquest: + docker compose pull nquest_server + docker compose up nquest_server -d --remove-orphans --force-recreate diff --git a/docker-compose.yml b/docker-compose.yml index 0466349..1505a51 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -180,6 +180,44 @@ services: volumes: - blog_data:/app/public + nquest_server: + image: gitrepo.ru/neonxp/nquest:latest + container_name: nquest_server + restart: unless-stopped + networks: + - gateway + - nquest + environment: + - POSTGRES_HOSTNAME=nquest_db + - POSTGRES_DB=nquest + - POSTGRES_USER=nquest + - POSTGRES_PASSWORD=nquest + - POSTGRES_PORT=5432 + - SECRET=${NQUEST_SECRET} + - LISTEN=:8080 + depends_on: + - nquest_db + nquest_db: + image: postgres:15-alpine + container_name: nquest_db + restart: always + environment: + - USER_UID=1001 + - USER_GID=1001 + - TZ=Europe/Moscow + - POSTGRES_DATABASE=nquest + - POSTGRES_USER=nquest + - POSTGRES_PASSWORD=nquest + healthcheck: + test: /usr/bin/pg_isready -U nquest -d nquest + interval: 5s + timeout: 10s + retries: 120 + networks: + - nquest + volumes: + - nquest_db_data:/var/lib/postgresql/data + volumes: caddy_data: opengist_data: @@ -188,8 +226,11 @@ volumes: forgejo_db_data: woodpecker_data: blog_data: + nquest_db_data: networks: gateway: forgejo: external: false + nquest: + external: false diff --git a/etc/Caddyfile b/etc/Caddyfile index 8b448d9..c4d1520 100644 --- a/etc/Caddyfile +++ b/etc/Caddyfile @@ -29,6 +29,10 @@ go.neonxp.ru { reverse_proxy goproxy_server:8080 } +nquest.ru { + reverse_proxy nquest_server:8080 +} + # idec.neonxp.dev { # reverse_proxy iigo:8080 # } |