aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Tuomi <jan.tuomi@eficode.com>2019-01-05 16:39:27 +0200
committerJan Tuomi <jan.tuomi@eficode.com>2019-01-05 16:39:27 +0200
commita30243933e4d6a9095151e7f2be0090530bc1a87 (patch)
tree7bbeb789375ead153d91dfb9a92296bd4ce0df9b
parent014874367d7800aafbcf3ce624380b19a5cfe781 (diff)
Add Docker
-rw-r--r--Dockerfile2
-rw-r--r--src/sound.js2
-rw-r--r--swarm-compose.yml6
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