Last active
June 7, 2023 04:01
-
-
Save lvnilesh/ba2c7f3060bb7c77d8d3f26e26d50653 to your computer and use it in GitHub Desktop.
ERROR - includes Wordpress and mysql along with nginx reverse proxy
This file contains hidden or 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: | |
nginx-proxy: | |
image: nginxproxy/nginx-proxy | |
container_name: nginx-proxy | |
ports: | |
- "80:80" | |
- "443:443" | |
volumes: | |
- conf:/etc/nginx/conf.d | |
- vhost:/etc/nginx/vhost.d | |
- html:/usr/share/nginx/html | |
- certs:/etc/nginx/certs:ro | |
- /var/run/docker.sock:/tmp/docker.sock:ro | |
network_mode: bridge | |
acme-companion: | |
image: nginxproxy/acme-companion | |
container_name: nginx-proxy-acme | |
environment: | |
- [email protected] | |
volumes_from: | |
- nginx-proxy | |
volumes: | |
- certs:/etc/nginx/certs:rw | |
- acme:/etc/acme.sh | |
- /var/run/docker.sock:/var/run/docker.sock:ro | |
network_mode: bridge | |
nginx3: | |
image: nginx | |
expose: | |
- "80" | |
volumes: | |
- /root/content:/usr/share/nginx/html:ro | |
environment: | |
- VIRTUAL_HOST=nginx.cloudgenius.app | |
- VIRTUAL_PORT=80 | |
- LETSENCRYPT_HOST=nginx.cloudgenius.app | |
network_mode: bridge | |
wp: | |
image: wordpress | |
restart: always | |
environment: | |
WORDPRESS_DB_HOST: db_for_wp | |
WORDPRESS_DB_USER: wordpress | |
WORDPRESS_DB_PASSWORD: password | |
WORDPRESS_DB_NAME: wordpress | |
VIRTUAL_HOST: wp.cloudgenius.app | |
LETSENCRYPT_HOST: wp.cloudgenius.app | |
volumes: | |
- wp:/var/www/html | |
network_mode: bridge | |
db_for_wp: | |
image: mysql:5.7 | |
restart: always | |
environment: | |
MYSQL_DATABASE: wordpress | |
MYSQL_USER: wordpress | |
MYSQL_PASSWORD: password | |
MYSQL_RANDOM_ROOT_PASSWORD: reallycomplex | |
volumes: | |
- db_for_wp:/var/lib/mysql | |
volumes: | |
conf: | |
vhost: | |
html: | |
certs: | |
acme: | |
wp: | |
db_for_wp: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment