From a30243933e4d6a9095151e7f2be0090530bc1a87 Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Sat, 5 Jan 2019 16:39:27 +0200 Subject: Add Docker --- Dockerfile | 2 ++ src/sound.js | 2 +- swarm-compose.yml | 6 ++++++ 3 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 Dockerfile create mode 100644 swarm-compose.yml diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..906e176 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,2 @@ +FROM nginx +COPY . /etc/share/nginx/html diff --git a/src/sound.js b/src/sound.js index 51f4330..e74b060 100644 --- a/src/sound.js +++ b/src/sound.js @@ -1,7 +1,7 @@ var Sound = function() { // start music this.bgMusic = new Howl({ - urls: ['res/bg.mp3'], + urls: ['/res/bg.mp3'], autoplay: true, loop: true, volume: 1, diff --git a/swarm-compose.yml b/swarm-compose.yml new file mode 100644 index 0000000..14309fc --- /dev/null +++ b/swarm-compose.yml @@ -0,0 +1,6 @@ +version: '3.2' +services: + jouluintegraalipeli: + image: registry.jan.systems/jouluintegraalipeli + ports: + - 8003:80 -- cgit v1.3