summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Weipert <code@drogueronin.de>2022-03-22 22:17:54 +0100
committerDaniel Weipert <code@drogueronin.de>2022-03-22 22:17:54 +0100
commit8cc23df07f7d1cf5f1546ccbd0353c4070fdf21d (patch)
treed026f8f555949d3ffb3e514af3934ceca8bb529a
parentfd4e50fcc1e72eee80d8af07209d669b25f5c20d (diff)
Move build files to separate folder 'n' stuffHEADmain
-rw-r--r--.gitignore3
-rw-r--r--docker-compose.yml15
-rw-r--r--docker-wordpress/Dockerfile (renamed from Dockerfile)0
-rw-r--r--docker-wordpress/docker-wp.example.ini (renamed from docker-wp.example.ini)0
4 files changed, 9 insertions, 9 deletions
diff --git a/.gitignore b/.gitignore
index e745936..6aaa54f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,3 @@
.env
-/db
-/data
+/volumes
docker-wp.ini
diff --git a/docker-compose.yml b/docker-compose.yml
index c237c8a..936f89f 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -1,11 +1,11 @@
-version: '3'
+version: '3.7'
services:
db:
image: mysql:5.7
restart: always
volumes:
- - "./db:/var/lib/mysql"
+ - "./volumes/db:/var/lib/mysql"
environment:
- "MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}"
- "MYSQL_PASSWORD=${MYSQL_PASSWORD}"
@@ -15,12 +15,12 @@ services:
- internal
app:
- build: .
+ build: "./docker-wordpress"
restart: always
depends_on:
- db
volumes:
- - "./data:/var/www/html"
+ - "./volumes/data:/var/www/html"
environment:
- "WORDPRESS_DB_HOST=db"
- "WORDPRESS_DB_USER=${MYSQL_USER}"
@@ -29,7 +29,7 @@ services:
#- "WORDPRESS_DEBUG=1"
networks:
- internal
- - traefik-public
+ - traefik
labels:
- "traefik.enable=true"
- "traefik.docker.network=${TRAEFIK_NETWORK}"
@@ -44,7 +44,7 @@ services:
links:
- db
volumes:
- - "./data:/var/www/html"
+ - "./volumes/data:/var/www/html"
environment:
- "WORDPRESS_DB_HOST=db"
- "WORDPRESS_DB_USER=${MYSQL_USER}"
@@ -57,5 +57,6 @@ services:
networks:
internal:
- traefik-public:
+ traefik:
external: true
+ name: "${TRAEFIK_NETWORK}"
diff --git a/Dockerfile b/docker-wordpress/Dockerfile
index 2a0c8e4..2a0c8e4 100644
--- a/Dockerfile
+++ b/docker-wordpress/Dockerfile
diff --git a/docker-wp.example.ini b/docker-wordpress/docker-wp.example.ini
index a236954..a236954 100644
--- a/docker-wp.example.ini
+++ b/docker-wordpress/docker-wp.example.ini