feat: add frontend service + dockerfile + env example
This commit is contained in:
parent
04835f31b6
commit
eb701bbb8a
3 changed files with 48 additions and 0 deletions
|
|
@ -45,3 +45,26 @@ services:
|
|||
timeout: 5s
|
||||
retries: 3
|
||||
start_period: 30s
|
||||
|
||||
frontend:
|
||||
build: ./frontend
|
||||
image: denpa-radio-frontend:latest
|
||||
restart: always
|
||||
env_file: config/frontend.env
|
||||
ports:
|
||||
- '172.17.0.1:12001:3000'
|
||||
volumes:
|
||||
- type: bind
|
||||
source: /mnt/trashbox/denpa-radio/library
|
||||
target: /library
|
||||
read_only: true
|
||||
- type: bind
|
||||
source: ./data/now-playing
|
||||
target: /now-playing
|
||||
read_only: true
|
||||
healthcheck:
|
||||
test: ['CMD', 'wget', '-q', '-O', '-', 'http://localhost:3000/api/stations.json']
|
||||
interval: 30s
|
||||
timeout: 5s
|
||||
retries: 3
|
||||
start_period: 15s
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue