Docker-compose.yml file để cài wordpress trên virtualhost

[sourcecode]
version: "2"
services:
nginx-proxy:
image: jwilder/nginx-proxy
container_name: nginx-proxy
ports:
– "80:80"
volumes:
– /var/run/docker.sock:/tmp/docker.sock:ro
– ./nginx:/etc/nginx/conf.d
db:
image: mariadb
ports:
– "8001:3306"
volumes:
– ./db:/var/lib/mysql
environment:
– MYSQL_ROOT_PASSWORD=secret
phpmyadmin:
image: phpmyadmin/phpmyadmin:latest
ports:
– "8002:80"
links:
– db:mysql
environment:
– MYSQL_ROOT_PASSWORD=secret
– VIRTUAL_HOST=phpmyadmin.app
– VIRTUAL_PORT=8002
wp:
image: wordpress
ports:
– "8003:80"
links:
– db:mysql
volumes:
– ./wp:/var/www/html/wp-content
environment:
– WORDPRESS_DB_PASSWORD=secret
– VIRTUAL_HOST=kb.abms.co
– VIRTUAL_PORT=8003
volumes:
mysql:
[/sourcecode]

Leave a Reply

You must be logged in to post a comment.