examples/docker-compose.yml hinzugefügt

This commit is contained in:
Artem Anufrij 2024-02-21 17:01:21 +01:00
parent f1c3f0d33e
commit c2df0b7b97

View 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