Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Hemmelig
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
NoCloud
docker
Hemmelig
Commits
7c5f73e6
Commit
7c5f73e6
authored
1 year ago
by
Elian Loraux
Browse files
Options
Downloads
Patches
Plain Diff
separate ports and traefik
parent
3b52bb9a
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
.env.sample
+18
-8
18 additions, 8 deletions
.env.sample
docker-compose.yml
+2
-7
2 additions, 7 deletions
docker-compose.yml
ports.yml
+6
-0
6 additions, 0 deletions
ports.yml
traefik.yml
+18
-0
18 additions, 0 deletions
traefik.yml
with
44 additions
and
15 deletions
.env.sample
+
18
−
8
View file @
7c5f73e6
COMPOSE_FILE=docker-compose.yml
# For prod
# COMPOSE_FILE=docker-compose.yml:traefik.yml
# For local
COMPOSE_FILE=docker-compose.yml:ports.yml
NAME=servermon
HOST=some-host.fqdn
# For local deployment
PORT=3000
# Variable to change
SECRET_ROOT_USER= # User as the root admin user
SECRET_ROOT_PASSWORD= # The admin user password (change this after signed in)
SECRET_ROOT_EMAIL= # The email for the admin user
SECRET_JWT_SECRET= # Override this for the secret signin JWT tokens for log in
# Instance variable
SECRET_LOCAL_HOSTNAME=0.0.0.0 # The local hostname for the fastify instance
SECRET_PORT=3000 # The port number for the fastify instance
SECRET_HOST=!changeme! # Used for i.e. set cors/cookies to your domain name
SECRET_ROOT_USER=groot # User as the root admin user
SECRET_ROOT_PASSWORD=iamroot # The admin user password (change this after signed in)
SECRET_ROOT_EMAIL=groot@hemmelig.app # The email for the admin user
SECRET_FILE_SIZE=4 # Set the total allowed upload file size in mb
SECRET_FORCED_LANGUAGE=fr # Set the default language for the application
SECRET_JWT_SECRET=!changeme! # Override this for the secret signin JWT tokens for log in
SECRET_MAX_TEXT_SIZE=256 # The max text size for the secret. Is set in kb. i.e. 256 for 256kb
This diff is collapsed.
Click to expand it.
docker-compose.yml
+
2
−
7
View file @
7c5f73e6
...
...
@@ -10,20 +10,15 @@ services:
-
./database/:/home/node/hemmelig/database/
environment
:
-
SECRET_LOCAL_HOSTNAME=${SECRET_LOCAL_HOSTNAME}
-
SECRET_PORT=${
SECRET_
PORT}
-
SECRET_HOST=${
SECRET_
HOST}
-
SECRET_PORT=${PORT}
-
SECRET_HOST=${HOST}
-
SECRET_ROOT_USER=${SECRET_ROOT_USER}
-
SECRET_ROOT_PASSWORD=${SECRET_ROOT_PASSWORD}
-
SECRET_ROOT_EMAIL=${SECRET_ROOT_EMAIL}
-
SECRET_FILE_SIZE=${SECRET_FILE_SIZE}
-
SECRET_FORCED_LANGUAGE=${SECRET_FORCED_LANGUAGE}
-
SECRET_JWT_SECRET=${SECRET_JWT_SECRET}
-
SECRET_MAX_TEXT_SIZE=${SECRET_MAX_TEXT_SIZE}
ports
:
-
'
3000:3000'
restart
:
unless-stopped
volumes
:
data
:
database
:
This diff is collapsed.
Click to expand it.
ports.yml
0 → 100644
+
6
−
0
View file @
7c5f73e6
version
:
"
3"
services
:
hemmelig
:
ports
:
-
${PORT}:3000
This diff is collapsed.
Click to expand it.
traefik.yml
0 → 100644
+
18
−
0
View file @
7c5f73e6
version
:
"
3"
services
:
kasm
:
networks
:
-
default
-
traefik
labels
:
-
"
traefik.enable=true"
-
"
traefik.docker.network=traefik"
-
"
traefik.http.routers.${NAME}.rule=Host(`${HOST}`)"
-
"
traefik.http.routers.${NAME}.tls.certresolver=myresolver"
-
"
traefik.http.routers.${NAME}.entrypoints=web,websecure"
-
"
traefik.http.services.${NAME}.loadbalancer.server.port=3000"
-
"
traefik.http.services.${NAME}.loadbalancer.server.scheme=https"
networks
:
traefik
:
external
:
true
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment