forked from lyqht/mini-qr
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (39 loc) 路 1.12 KB
/
Copy pathdocker-compose.yml
File metadata and controls
41 lines (39 loc) 路 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
---
services:
mini-qr:
# image: ghcr.io/lyqht/mini-qr:latest
container_name: mini-qr
restart: unless-stopped
# Uncomment the following lines to build locally instead of pulling from ghcr.io
build:
context: .
dockerfile: Dockerfile
args:
- BASE_PATH=${BASE_PATH:-/mini-qr/}
- VITE_HIDE_CREDITS=${HIDE_CREDITS:-false}
- VITE_DEFAULT_PRESET=${DEFAULT_PRESET:-}
- VITE_DEFAULT_DATA_TO_ENCODE=${DEFAULT_DATA:-}
- VITE_QR_CODE_PRESETS=${PRESETS:-}
- VITE_FRAME_PRESET=${FRAME_PRESET:-}
- VITE_FRAME_PRESETS=${FRAME_PRESETS:-}
- VITE_DISABLE_LOCAL_STORAGE=${DISABLE_LOCAL_STORAGE:-false}
# volumes:
# - ./public:/usr/share/nginx/html/public:ro
# - ./nginx.conf:/etc/nginx/nginx.conf:ro
networks:
- mini-qr-network
nginx-proxy:
image: nginx:alpine
container_name: nginx-proxy
ports:
- 80:80
restart: unless-stopped
volumes:
- ./nginx-proxy.conf:/etc/nginx/nginx.conf:ro
depends_on:
- mini-qr
networks:
- mini-qr-network
networks:
mini-qr-network:
driver: bridge