summaryrefslogtreecommitdiffstats
path: root/docker-compose.dev.yml
diff options
context:
space:
mode:
Diffstat (limited to 'docker-compose.dev.yml')
-rw-r--r--docker-compose.dev.yml30
1 files changed, 30 insertions, 0 deletions
diff --git a/docker-compose.dev.yml b/docker-compose.dev.yml
new file mode 100644
index 0000000..4b3cc4f
--- /dev/null
+++ b/docker-compose.dev.yml
@@ -0,0 +1,30 @@
+version: '2'
+
+services:
+ web:
+ image: lazyfrosch/icingaweb2:sqlite
+ build: test/docker/
+ ports:
+ - 8080:80
+ links:
+ - db
+ volumes:
+ - ./test/config:/etc/icingaweb2
+ - ./vendor/icingaweb2:/usr/share/icingaweb2
+ - .:/usr/share/icingaweb2/modules/toplevelview
+
+ db:
+ image: mariadb
+ volumes:
+ - db_data:/var/lib/mysql
+ - ./test/docker/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
+ ports:
+ - 3310:3306
+ environment:
+ MYSQL_ROOT_PASSWORD: onlyforadmin
+ MYSQL_DATABASE: icingaweb2
+ MYSQL_USER: icingaweb2
+ MYSQL_PASSWORD: rosebud
+
+volumes:
+ db_data: