Skip to content

Commit

Permalink
Use volume from container
Browse files Browse the repository at this point in the history
  • Loading branch information
enolfc committed Aug 22, 2024
1 parent 684cb0b commit a4e9867
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
version: "3.3"

services:

traefik:
image: "traefik:v2.11"
container_name: "traefik"
Expand Down Expand Up @@ -31,26 +30,23 @@ services:
restart_policy:
condition: any


dashboard:
image: "b4bz/homer:v24.05.1"
labels:
- "traefik.enable=true"
- "traefik.http.routers.dashboard.rule=HostRegexp(`{any:.+}`)"
- "traefik.http.routers.dashboard.entrypoints=websecure"
- "traefik.http.routers.dashboard.tls.certresolver=myresolver"
volumes:
- "/fedcloud-dashboard/assets:/www/assets/"
volumes_from:
- endpoint_updater
environment:
- INIT_ASSETS=1
- INIT_ASSETS=0
deploy:
restart_policy:
condition: any

endpoint_updater:
build: .
volumes:
- "/fedcloud-dashboard/assets:/www/assets/"
deploy:
restart_policy:
condition: any
Expand Down

0 comments on commit a4e9867

Please sign in to comment.