docker/docker-compose.yml

41 lines
782 B
YAML

version: "3"
services:
database:
image: mongo:5
restart: always
volumes:
- ./database:/data/db
redis:
image: redis:alpine
restart: always
server:
build: server/.
image: artemanufrij/webplay-server:latest
restart: always
env_file: .env.production
working_dir: /server
command: bash -c "node ./server.js"
ports:
- "31204:31204"
volumes:
- ./videos:/webplay/videos
- ./music:/webplay/music
- ./cache:/webplay/cache
- ./uploads:/webplay/uploads
depends_on:
- database
- redis
links:
- redis
- database
client:
build: client/.
image: artemanufrij/webplay-client:latest
restart: always
ports:
- 8081:80
depends_on:
- server