summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile5
-rw-r--r--docker-compose.yml41
-rw-r--r--etc/Caddyfile4
3 files changed, 50 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 551a5f5..3f7e433 100644
--- a/Makefile
+++ b/Makefile
@@ -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
# }