Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ginkgo
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
Fred
ginkgo
Commits
a2798e5d
Commit
a2798e5d
authored
2 years ago
by
vjrj
Browse files
Options
Downloads
Patches
Plain Diff
Added Docker support (wip)
parent
ad4c0399
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
docker-compose.yml
+29
-0
29 additions, 0 deletions
docker-compose.yml
nginx.conf.template
+47
-0
47 additions, 0 deletions
nginx.conf.template
proxy-gva.conf
+14
-0
14 additions, 0 deletions
proxy-gva.conf
startup.sh
+5
-0
5 additions, 0 deletions
startup.sh
with
95 additions
and
0 deletions
docker-compose.yml
0 → 100644
+
29
−
0
View file @
a2798e5d
version
:
'
3'
services
:
g1nkgo
:
image
:
g1nkgo:latest
container_name
:
g1nkgo
restart
:
always
hostname
:
g1nkgo
ports
:
-
"
1801:80"
-
"
14431:443"
volumes
:
-
~/.ginkgo/nginx-conf:/etc/nginx/:rw
-
./assets:/usr/share/nginx/html/assets:rw
environment
:
# https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
# Useful for having logs with local time
TZ
:
"
Europe/Copenhagen"
command
:
/bin/bash -c "/usr/local/bin/startup.sh && nginx -g 'daemon off;'"
watchtower
:
image
:
containrrr/watchtower
container_name
:
g1nkgo-watchtower
restart
:
unless-stopped
volumes
:
-
/var/run/docker.sock:/var/run/docker.sock
# Additional watchtower args
# commmand:
This diff is collapsed.
Click to expand it.
nginx.conf.template
0 → 100644
+
47
−
0
View file @
a2798e5d
# nginx.conf.template
server {
listen *:${NGINX_HTTP_PORT};
listen [::]:${NGINX_HTTP_PORT};
server_name ginkgo.example.com;
index index.html index.htm index.php;
access_log /var/log/nginx/g1demo.comunes.net.access.log combined;
error_log /var/log/nginx/g1demo.comunes.net.error.log;
include /etc/nginx/snippets/proxy-gva.conf;
location / {
root /usr/share/nginx/html;
index index.html;
}
}
# server {
# listen ${NGINX_HTTP_PORT} ssl http2;
# listen [::]:${NGINX_HTTP_PORT} ssl http2;
# server_name ginkgo.example.com;
# ssl on;
# ssl_certificate /etc/letsencrypt/live/ginkgo.example.com/fullchain.pem;
# ssl_certificate_key /etc/letsencrypt/live/ginkgo.example.com/privkey.pem;
# ssl_protocols TLSv1.3 TLSv1.2 ;
# ssl_session_cache shared:SSL:10m;
# ssl_session_timeout 5m;
# ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
# ssl_ciphers ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA:ECDHE-ECDSA-DES-CBC3-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:DES-CBC3-SHA:!DSS;
# ssl_prefer_server_ciphers on;
# index index.html index.htm index.php;
# access_log /var/log/nginx/ssl-ginkgo.example.com.access.log combined;
# error_log /var/log/nginx/ssl-ginkgo.example.com.error.log;
# include /etc/nginx/snippets/proxy-gva.conf;
# location / {
# root /usr/share/nginx/html;
# index index.html;
# }
# }
This diff is collapsed.
Click to expand it.
proxy-gva.conf
0 → 100644
+
14
−
0
View file @
a2798e5d
location
~ ^/
proxy
/(.*)/(
gva
(/.*)?)$ {
set
$
proxy_url
$
1
;
set
$
proxy_uri
$
2
;
# resolver 1.1.1.1;
add_header
'Access-Control-Allow-Origin'
'*'
;
add_header
'Access-Control-Allow-Methods'
'GET, POST, OPTIONS'
;
add_header
'Access-Control-Allow-Headers'
'X-Requested-With'
;
proxy_set_header
Host
$
host
;
proxy_set_header
X
-
Real
-
IP
$
remote_addr
;
proxy_set_header
X
-
Forwarded
-
Proto
$
scheme
;
proxy_set_header
X
-
Forwarded
-
For
$
proxy_add_x_forwarded_for
;
proxy_pass
$
proxy_url
/
gva
/$
proxy_uri
$
is_args
$
args
;
proxy_redirect
off
;
}
This diff is collapsed.
Click to expand it.
startup.sh
0 → 100644
+
5
−
0
View file @
a2798e5d
#!/bin/bash
if
[
-z
"
$(
ls
-A
/etc/nginx
)
"
]
;
then
cp
-a
/etc/nginx-default/
*
/etc/nginx/
fi
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