diff --git a/examples/docker-compose.yml b/examples/docker-compose.yml new file mode 100644 index 0000000..0f1c6dd --- /dev/null +++ b/examples/docker-compose.yml @@ -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 \ No newline at end of file