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: {}
@randomblink
Copy link

What if I am getting... ERROR: Top level object in './docker-compose.yml' needs to be an object not '<class 'str'>'.

@AlexeyKot
Copy link

I don't see errors, but when I open http://local.divi-dev.site/ I see apache welcome screen, there's no wordpress installation.
KDE Neon (Ubuntu 16.04).

@mehedi101
Copy link

mehedi101 commented Oct 6, 2018

for windows 10 use Volumes like this:
volumes: ["your/dockerfile/directory/path:/workspace/wordpress"]

@holmesadrianh
Copy link

Can this instance of mariadb be accessed outside of the container?

@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