Created
March 12, 2020 20:20
-
-
Save kidpixo/5421e09a210c4ccbf1c45ba60faf46fc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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