diff options
| -rw-r--r-- | Dockerfile | 2 | ||||
| -rw-r--r-- | src/sound.js | 2 | ||||
| -rw-r--r-- | swarm-compose.yml | 6 |
3 files changed, 9 insertions, 1 deletions
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 |
