commit 7008898ee46ec26fa414c20e31a0a2f25bacc538 Author: stephane.david Date: Sun Dec 22 21:06:17 2024 +0100 First version diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/.idea/lynx.iml b/.idea/lynx.iml new file mode 100644 index 0000000..d6ebd48 --- /dev/null +++ b/.idea/lynx.iml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..639900d --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..f4b32dd --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..5b79772 --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,39 @@ +version: "3.9" +services: + db: + image: mongo + container_name: Lynx-DB + restart: on-failure:5 + security_opt: + - no-new-privileges:true + healthcheck: + test: ["CMD", "mongosh", "--eval", "db.adminCommand('ping')"] + interval: 10s + timeout: 10s + retries: 5 + start_period: 20s + volumes: + - /var/lib/docker/volumes/lynxdb:/data/db:rw + - /var/lib/docker/volumes/lynxdb:/data/configdb:rw + + lynx: + image: jackbailey/lynx + container_name: Lynx + restart: on-failure:5 + ports: + - 3485:3000 + depends_on: + - db + environment: + - NODE_ENV=production + - JWT_KEY=gy5CBxx2l7ApP3U9W7lr1pgS3cgtomwF + - URL_LENGTH=8 + - URL_SET=standard + - URL_ONLY_UNIQUE=false + - HOME_REDIRECT=/dash/overview + - FORCE_FRONTEND_REDIRECT=false + - ENABLE_REGISTRATION=false # First registration will always be allowed. + - DOMAIN=https://lynxdev.maison + - DEMO=false + - DB_HOST=db + - DB_PORT=27017 \ No newline at end of file