Files
hop.noname.company/compose.yaml

45 lines
1.2 KiB
YAML

services:
hop:
image: hop.noname.company:latest
# This image is built on the NAS; it is not published in a registry.
pull_policy: never
build:
context: .
dockerfile: Dockerfile
container_name: hop
user: '${HOP_RUN_UID:-1000}:${HOP_RUN_GID:-1000}'
restart: unless-stopped
env_file: .env
environment:
NODE_ENV: production
HOST: 0.0.0.0
PORT: ${HOP_CONTAINER_PORT:?배포 시 내부 포트를 지정하세요}
APP_URL: ${APP_URL:?서비스 HTTPS 주소를 지정하세요}
ports:
- '${HOP_BIND_IP:?접속을 허용할 호스트 IP를 지정하세요}:${HOP_HOST_PORT:?충돌 없는 호스트 포트를 지정하세요}:${HOP_CONTAINER_PORT:?내부 포트를 지정하세요}'
volumes:
- 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
logging:
driver: json-file
options:
max-size: 10m
max-file: '3'
volumes:
hop_database:
name: hop_hop_database
networks:
hop_network:
driver: bridge