Created
June 7, 2023 04:01
-
-
Save lvnilesh/fbf22738c7c9a9ff40d152fbb8cf9568 to your computer and use it in GitHub Desktop.
version 3 fixed after livestream
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: '3' | |
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 | |
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 | |
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 | |
wp: | |
image: wordpress | |
restart: always | |
container_name: wp | |
expose: | |
- "80" | |
environment: | |
WORDPRESS_DB_HOST: db_for_wp | |
WORDPRESS_DB_USER: wordpress | |
WORDPRESS_DB_PASSWORD: password | |
WORDPRESS_DB_NAME: wordpress | |
VIRTUAL_HOST: wp.cloudgenius.app | |
VIRTUAL_PORT: 80 | |
LETSENCRYPT_HOST: wp.cloudgenius.app | |
volumes: | |
- wp:/var/www/html | |
db_for_wp: | |
image: mysql:5.7 | |
restart: always | |
container_name: db_for_wp | |
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