docker/docker-compose.yml

41 lines
782 B
YAML
Raw Normal View History

2023-02-08 12:33:50 +01:00
version: "3"
services:
database:
2023-09-29 13:00:38 +02:00
image: mongo:5
2023-02-08 12:33:50 +01:00
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