Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '2'
- networks:
- nginx-proxy:
- driver: bridge
- net-db:
- driver: bridge
- volumes:
- db-mysql-site1:
- site1-theme:
- site1-uploads:
- site1-plugins:
- services:
- nginx:
- image: jwilder/nginx-proxy
- restart: always
- ports:
- - 80:80
- - 443:443
- volumes:
- - /var/run/docker.sock:/tmp/docker.sock:ro
- - ./certs:/etc/nginx/certs
- networks:
- - nginx-proxy
- site1:
- image: wordpress
- restart: always
- volumes:
- - site1-theme:/var/www/html/wp-content/themes
- - site1-uploads:/var/www/html/wp-content/uploads
- - site1-plugins:/var/www/html/wp-content/plugins
- НУЖНО ЛИ СЮДА ПРОБРАСЫВАТЬ ССЛ???
- environment:
- WORDPRESS_DB_PASSWORD : password1
- WORDPRESS_DB_HOST : db1
- WORDPRESS_DB_USER : user1
- WORDPRESS_DB_NAME : db-site1
- VIRTUAL_HOST : site1.local
- networks:
- - nginx-proxy
- - net-db
- db1:
- image: mysql
- restart: always
- environment:
- MYSQL_ROOT_PASSWORD : root_password1
- MYSQL_PASSWORD : password1
- MYSQL_USER : user1
- MYSQL_DATABASE : db-site1
- volumes:
- - db-mysql-site1:/var/lib/mysql
- networks:
- - net-db
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement