update
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -6,7 +6,7 @@ yarn-debug.log*
|
|||||||
yarn-error.log*
|
yarn-error.log*
|
||||||
pnpm-debug.log*
|
pnpm-debug.log*
|
||||||
lerna-debug.log*
|
lerna-debug.log*
|
||||||
|
docker-compose.yml
|
||||||
node_modules
|
node_modules
|
||||||
dist
|
dist
|
||||||
dist-ssr
|
dist-ssr
|
||||||
|
|||||||
18
docker-compose-example.yml
Normal file
18
docker-compose-example.yml
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
services:
|
||||||
|
web:
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
args:
|
||||||
|
- VITE_ADMIN_PIN=${VITE_ADMIN_PIN:-1234}
|
||||||
|
|
||||||
|
ports:
|
||||||
|
- "8080:8080"
|
||||||
|
environment:
|
||||||
|
- VITE_ADMIN_PIN=${VITE_ADMIN_PIN:-1234}
|
||||||
|
- VITE_APP_TITLE=${VITE_APP_TITLE:-Chronicle}
|
||||||
|
- VITE_APP_DESCRIPTION=${VITE_APP_DESCRIPTION:-A visual journey through time}
|
||||||
|
volumes:
|
||||||
|
- ./uploads:/app/uploads
|
||||||
|
- ./data:/app/data
|
||||||
|
restart: always
|
||||||
|
|
||||||
@@ -4,8 +4,21 @@ services:
|
|||||||
context: .
|
context: .
|
||||||
args:
|
args:
|
||||||
- VITE_ADMIN_PIN=${VITE_ADMIN_PIN:-1234}
|
- VITE_ADMIN_PIN=${VITE_ADMIN_PIN:-1234}
|
||||||
ports:
|
networks:
|
||||||
- "8080:8080"
|
- proxy
|
||||||
|
labels:
|
||||||
|
- traefik.enable=true
|
||||||
|
- traefik.docker.network=proxy
|
||||||
|
- traefik.http.routers.gallery.entrypoints=http
|
||||||
|
- traefik.http.routers.gallery.rule=Host(`gallery.dongho.kim`)
|
||||||
|
- traefik.http.middlewares.gallery-redirect.redirectscheme.permanent=true
|
||||||
|
- traefik.http.middlewares.gallery-redirect.redirectscheme.scheme=https
|
||||||
|
- traefik.http.routers.gallery.middlewares=gallery-redirect
|
||||||
|
- traefik.http.routers.gallery-secure.entrypoints=https
|
||||||
|
- traefik.http.routers.gallery-secure.rule=Host(`gallery.dongho.kim`)
|
||||||
|
- traefik.http.routers.gallery-secure.tls=true
|
||||||
|
- traefik.http.routers.gallery-secure.tls.certresolver=cloudflare
|
||||||
|
- traefik.http.services.gallery-secure-service.loadbalancer.server.port=8080
|
||||||
environment:
|
environment:
|
||||||
- VITE_ADMIN_PIN=${VITE_ADMIN_PIN:-1234}
|
- VITE_ADMIN_PIN=${VITE_ADMIN_PIN:-1234}
|
||||||
- VITE_APP_TITLE=${VITE_APP_TITLE:-Chronicle}
|
- VITE_APP_TITLE=${VITE_APP_TITLE:-Chronicle}
|
||||||
@@ -14,3 +27,7 @@ services:
|
|||||||
- ./uploads:/app/uploads
|
- ./uploads:/app/uploads
|
||||||
- ./data:/app/data
|
- ./data:/app/data
|
||||||
restart: always
|
restart: always
|
||||||
|
|
||||||
|
networks:
|
||||||
|
proxy:
|
||||||
|
external: true
|
||||||
|
|||||||
Reference in New Issue
Block a user