examples/docker-compose.yml hinzugefügt
This commit is contained in:
parent
f1c3f0d33e
commit
c2df0b7b97
37
examples/docker-compose.yml
Normal file
37
examples/docker-compose.yml
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
version: '3'
|
||||||
|
services:
|
||||||
|
database:
|
||||||
|
image: mongo:5
|
||||||
|
restart: always
|
||||||
|
volumes:
|
||||||
|
- ./database:/data/db
|
||||||
|
|
||||||
|
redis:
|
||||||
|
image: redis:alpine
|
||||||
|
restart: always
|
||||||
|
|
||||||
|
server:
|
||||||
|
restart: always
|
||||||
|
image: code.anufrij.de/webplay/server:latest
|
||||||
|
env_file: .env.production
|
||||||
|
working_dir: /server
|
||||||
|
command: bash -c "node ./server.js"
|
||||||
|
volumes:
|
||||||
|
- ./videos:/webplay/videos
|
||||||
|
- ./music:/webplay/music
|
||||||
|
- ./cache:/webplay/cache
|
||||||
|
- ./uploads:/webplay/uploads
|
||||||
|
depends_on:
|
||||||
|
- database
|
||||||
|
- redis
|
||||||
|
links:
|
||||||
|
- redis
|
||||||
|
- database
|
||||||
|
|
||||||
|
client:
|
||||||
|
restart: always
|
||||||
|
image: code.anufrij.de/webplay/client:latest
|
||||||
|
ports:
|
||||||
|
- 8081:80
|
||||||
|
depends_on:
|
||||||
|
- server
|
Loading…
Reference in New Issue
Block a user