Skip to content

Instantly share code, notes, and snippets.

@lots0logs
Created April 16, 2018 20:23
Show Gist options
  • Save lots0logs/e4cbe8dfe65bacb6a07792a4db10660f to your computer and use it in GitHub Desktop.
Save lots0logs/e4cbe8dfe65bacb6a07792a4db10660f to your computer and use it in GitHub Desktop.
Divi Development Environment
version: '3.3'
services:
mariadb:
image: 'mariadb:10.2.14'
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: wordpress
DATADIR: /data
restart: on-failure
volumes:
- 'database:/data'
network_mode: 'service:wordpress'
wordpress:
image: 'elegantthemes/divi-dev'
hostname: divi-dev
volumes:
- '${PWD}:/workspace/wordpress'
ports:
- '80:80' # nginx
- '3306:3306' # mariadb
- '3000:3000' # webpack hmr
volumes:
database: {}
@4waymedia
Copy link

This is giving an error: yaml.scanner.ScannerError: while scanning for the next token
found character '\t' that cannot start any token
in "./docker-compose.yml", line 6, column 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment