Snippets

Frederik Banke docker-compose.development.yml

Created by Frederik Banke

File docker-compose.development.yml Added

  • Ignore whitespace
  • Hide word diff
+version: "3"
+
+services:
+  fileserver:
+    build: fileserver
+      
+    environment:
+      - SKIP_COPY_THEME=1
+    volumes:
+      - wordpress-data:/var/wordpress
+      - './development/lund-fitness.dk/ignore:/var/lund-fitness.dk'
+
+  db:
+    image: mariadb
+    volumes:
+      - './development/sqldump/:/var/sqldump'
+
+    environment:
+      - MYSQL_ROOT_PASSWORD=xxx
+
+  php:
+    build: php-fpm
+  
+    environment:
+      - PHP_VALIDATE_TIMESTAMPS=1
+      - PHP_DISPLAY_ERRORS=1
+      - PHP_ERROR_REPORTING=E_STRICT 
+      - PHP_XDEBUG_REMOTE_HOST=10.0.75.1 # host machine's IP so xdebug can connect to the IDE
+      - PHP_XDEBUG_ZEND=/usr/local/lib/php/extensions/no-debug-non-zts-20170718/xdebug.so
+
+    volumes:
+      - wordpress-data:/var/www/lund-fitness.dk/
+      - './development/lund-fitness.dk/wp-content:/var/www/lund-fitness.dk/wp-content'
+      - './fileserver/lund-fitness:/var/www/lund-fitness.dk/wp-content/themes/lund-fitness'
+
+  http:
+    build: httpd
+    ports:
+      - "80:80"
+
+    volumes:
+      - wordpress-data:/var/www/lund-fitness.dk/
+      - './development/lund-fitness.dk/wp-content:/var/www/lund-fitness.dk/wp-content'
+      - './fileserver/lund-fitness:/var/www/lund-fitness.dk/wp-content/themes/lund-fitness'
+
+  redis:
+    image: redis:4.0.8-alpine
+
+volumes:
+  wordpress-data:
HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.