Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
icebox-dockerized
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
Container Registry
Model registry
Operate
Environments
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
chaotikum
infra
icebox-dockerized
Commits
c716917f
Commit
c716917f
authored
3 years ago
by
Paul
Browse files
Options
Downloads
Patches
Plain Diff
use traefik instead of nginx
parent
82bc758e
No related branches found
Branches containing commit
No related tags found
1 merge request
!1
Use traefik
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docker-compose.yml
+58
-25
58 additions, 25 deletions
docker-compose.yml
with
58 additions
and
25 deletions
docker-compose.yml
+
58
−
25
View file @
c716917f
...
...
@@ -5,20 +5,45 @@ services:
restart
:
always
depends_on
:
-
backend
expose
:
-
8080
-
8081
labels
:
-
"
traefik.enable=true"
-
'
traefik.http.routers.vue.entrypoints=web'
-
"
traefik.http.routers.web.rule=Host(`icebox.nobreakspace.org`)"
environment
:
ICEBOX_API_HOST
:
backend
ICEBOX_API_PORT
:
8081
ICEBOX_WEB_PORT
:
8080
IMAGE_SERVICE
:
"
images.icebox.nobreakspace.org"
web-vue
:
image
:
registry.chaotikum.net/icebox/icebox-vuetified
restart
:
always
depends_on
:
-
backend
-
backend
expose
:
-
80
labels
:
-
"
traefik.enable=true"
-
'
traefik.http.routers.vue.entrypoints=web'
-
'
traefik.http.routers.vue.rule=Host(`vue.icebox.nobreakspace.org`)'
image-service
:
image
:
registry.chaotikum.net/icebox/icebox-image-service
restart
:
always
depends_on
:
-
backend
expose
:
80
labels
:
-
"
traefik.enable=true"
-
'
traefik.http.routers.images.entrypoints=web'
-
'
traefik.http.routers.images.rule=HostRegexp(`{images:images\..*}`)'
alias
:
image
:
registry.chaotikum.net/icebox/iceboxalias
restart
:
always
...
...
@@ -26,35 +51,26 @@ services:
-
ICEBOX_DB_URL=postgresql://icebox:clubmate42@database/icebox
depends_on
:
-
database
backend
:
image
:
registry.chaotikum.net/icebox/icebox-service
restart
:
always
depends_on
:
-
database
-
database
expose
:
-
8081
labels
:
-
"
traefik.enable=true"
-
'
traefik.http.routers.api.entrypoints=web'
-
'
traefik.http.routers.api.rule=Host(`api.icebox.nobreakspace.org`)'
environment
:
ICEBOX_DB_HOST
:
database
ICEBOX_DB_PORT
:
5432
ICEBOX_DB_USER
:
icebox
ICEBOX_DB_PSW
:
clubmate42
ICEBOX_DB_NAME
:
icebox
nginx
:
build
:
nginx
restart
:
always
# In production an external IP is assigned to this container
#ports:
#- "80:80"
#- "8081:8081"
#- "8085:8085"
depends_on
:
-
web
-
web-vue
-
alias
-
backend
networks
:
default
:
public
:
ipv4_address
:
172.23.208.37
ipv6_address
:
2a01:170:1112::0.0.0.37
pgadmin
:
build
:
pgadmin4
restart
:
always
...
...
@@ -76,11 +92,28 @@ services:
environment
:
ICEBOX_URL
:
http://backend:8081
traefik
:
image
:
traefik:v2.5
command
:
-
"
--api.insecure=true"
-
"
--providers.docker=true"
-
"
--providers.docker.exposedbydefault=false"
-
"
--entrypoints.web.address=:80"
volumes
:
-
/var/run/docker.sock:/var/run/docker.sock:ro
depends_on
:
-
web
-
web-vue
-
alias
-
backend
networks
:
default
:
public
:
ipv4_address
:
172.23.208.37
ipv6_address
:
2a01:170:1112::0.0.0.37
volumes
:
icebox-data
:
external
:
true
networks
:
public
:
external
:
name
:
space_net
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