docker/examples/docker-compose.yml

37 lines
855 B
YAML

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