aboutsummaryrefslogtreecommitdiff
path: root/docker-compose.yml
diff options
context:
space:
mode:
authorPhilipp Le <philipp-le-prviat@freenet.de>2021-02-18 01:13:15 +0100
committerPhilipp Le <philipp-le-prviat@freenet.de>2021-02-18 01:13:15 +0100
commitb67c617476b0e20973f1fa2001709bc53592da83 (patch)
tree5ed3798a2549ba5efc3404470ca204c1f0957e94 /docker-compose.yml
downloadbaikal-docker-b67c617476b0e20973f1fa2001709bc53592da83.zip
baikal-docker-b67c617476b0e20973f1fa2001709bc53592da83.tar.gz
baikal-docker-b67c617476b0e20973f1fa2001709bc53592da83.tar.bz2
feat: Basic Baikal image based on PHP7 with Apache
Diffstat (limited to 'docker-compose.yml')
-rw-r--r--docker-compose.yml26
1 files changed, 26 insertions, 0 deletions
diff --git a/docker-compose.yml b/docker-compose.yml
new file mode 100644
index 0000000..63e731b
--- /dev/null
+++ b/docker-compose.yml
@@ -0,0 +1,26 @@
+version: '3.3'
+
+services:
+ db:
+ image: mysql:5.7
+ volumes:
+ - ./volumes/db:/var/lib/mysql
+ restart: always
+ env_file:
+ - baikal.env
+
+ baikal:
+ depends_on:
+ - db
+ build:
+ context: .
+ dockerfile: Dockerfile
+ ports:
+ - "8080:80"
+ restart: always
+ labels:
+ - traefik.http.middlewares.strip-baikal.stripprefix.prefixes=/baikal
+ - traefik.http.routers.baikal.rule=(Host(`example.org`) || Host(`www.example.org`) && PathPrefix(`baikal`)
+ - traefik.http.routers.baikal.middlewares=strip-baikal@docker
+ volumes:
+ - ./volumes/Specific:/var/www/html/Specific