Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
version: "2"
services:
mariadb:
image: mariadb
ports:
- "8081:3306"
restart: on-failure:5
# questo monta la cartella locale mariadb-data in /var/lib/mysql nel container
# quando lui scrive nel db ti trovi la roba in locale.
volumes:
- ./mariadb-data:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: myc00LpsW
wordpress:
image: wordpress
volumes:
- ./public:/var/www/html
ports:
- "8080:80"
restart: on-failure:5
links:
- mariadb:mysql
environment:
WORDPRESS_DB_PASSWORD: myc00LpsW
phpmyadmin:
image: phpmyadmin/phpmyadmin:latest
ports:
- 8082:80
links:
- mariadb:mysql
environment:
PMA_USER: root
PMA_PASSWORD: myc00LpsW
PMA_HOST: mysql
# questo se non ti serve levalo tutto da qui in poi.
# [welaika/wordmove: Multi-stage command line deploy/mirroring and task runner for Wordpress](https://github.com/welaika/wordmove)
wordmove:
tty: true
depends_on:
- wordpress
links:
- mariadb:mysql
image: welaika/wordmove:php7
restart: on-failure:5
volumes:
- ./public:/html
- ~/.ssh:/root/.ssh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment