Use visible NAS upload storage and reconcile missing files
This commit is contained in:
15
compose.yaml
15
compose.yaml
@@ -7,6 +7,7 @@ services:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
container_name: hop
|
||||
user: '${HOP_RUN_UID:-1000}:${HOP_RUN_GID:-1000}'
|
||||
restart: unless-stopped
|
||||
env_file: .env
|
||||
environment:
|
||||
@@ -17,8 +18,16 @@ services:
|
||||
ports:
|
||||
- '${HOP_BIND_IP:?접속을 허용할 호스트 IP를 지정하세요}:${HOP_HOST_PORT:?충돌 없는 호스트 포트를 지정하세요}:${HOP_CONTAINER_PORT:?내부 포트를 지정하세요}'
|
||||
volumes:
|
||||
- hop_database:/data/database
|
||||
- hop_uploads:/data/uploads
|
||||
- type: volume
|
||||
source: hop_database
|
||||
target: /data/database
|
||||
volume:
|
||||
nocopy: true
|
||||
- type: bind
|
||||
source: ./uploads
|
||||
target: /data/uploads
|
||||
bind:
|
||||
create_host_path: false
|
||||
networks:
|
||||
- hop_network
|
||||
stop_grace_period: 30s
|
||||
@@ -30,8 +39,6 @@ services:
|
||||
volumes:
|
||||
hop_database:
|
||||
name: hop_hop_database
|
||||
hop_uploads:
|
||||
name: hop_hop_uploads
|
||||
networks:
|
||||
hop_network:
|
||||
driver: bridge
|
||||
|
||||
Reference in New Issue
Block a user