Last active
January 19, 2018 20:55
-
-
Save mfung/9b0fd65ccc793c7b1ec44dfb2deb370d 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: '3.1' | |
services: | |
postgres: | |
container_name: psql01 | |
image: postgres:10.1-alpine | |
restart: always | |
ports: | |
- "5432:5432" | |
- "5433:5433" | |
environment: | |
POSTGRES_PASSWORD: <password> | |
volumes: | |
- /home/core/datadir/postgresql:/var/lib/postgresql:z | |
mysql: | |
container_name: mysql01 | |
image: mysql:8 | |
restart: always | |
ports: | |
- "3306:3306" | |
environment: | |
MYSQL_ROOT_PASSWORD: <password> | |
volumes: | |
- /home/core/datadir/mysql:/var/lib/mysql | |
redis: | |
container_name: redis01 | |
image: redis:alpine | |
restart: always | |
nginx-proxy: | |
container_name: nginx-proxy | |
restart: always | |
labels: | |
com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy: "true" | |
image: nginx:alpine | |
ports: | |
- "80:80" | |
- "443:443" | |
volumes: | |
- /home/core/nginx_files/conf.d:/etc/nginx/conf.d | |
- /home/core/nginx_files/vhost.d:/etc/nginx/vhost.d | |
- /home/core/nginx_files/html:/usr/share/nginx/html | |
- /home/core/nginx_files/certs:/etc/nginx/certs:ro | |
- /home/core/nginx_files/htpasswd:/etc/nginx/htpasswd:ro | |
nginx-gen: | |
container_name: nginx-gen | |
image: jwilder/docker-gen | |
command: -notify-sighup nginx-proxy -watch -wait 5s:30s /etc/docker-gen/templates/nginx.tmpl /etc/nginx/conf.d/default.conf | |
restart: always | |
labels: | |
com.github.jrcs.letsencrypt_nginx_proxy_companion.docker_gen: "true" | |
volumes: | |
- /home/core/nginx_files/conf.d:/etc/nginx/conf.d | |
- /home/core/nginx_files/vhost.d:/etc/nginx/vhost.d | |
- /home/core/nginx_files/html:/usr/share/nginx/html | |
- /home/core/nginx_files/certs:/etc/nginx/certs:ro | |
- /home/core/nginx_files/htpasswd:/etc/nginx/htpasswd:ro | |
- /var/run/docker.sock:/tmp/docker.sock:ro | |
- /home/core/nginx_files/nginx.tmpl:/etc/docker-gen/templates/nginx.tmpl:ro | |
letsencrypt-nginx-proxy-companion: | |
container_name: nginx-letsencrypt | |
image: jrcs/letsencrypt-nginx-proxy-companion | |
restart: always | |
volumes: | |
- /home/core/nginx_files/conf.d:/etc/nginx/conf.d | |
- /home/core/nginx_files/vhost.d:/etc/nginx/vhost.d | |
- /home/core/nginx_files/html:/usr/share/nginx/html | |
- /home/core/nginx_files/certs:/etc/nginx/certs:rw | |
- /var/run/docker.sock:/var/run/docker.sock:ro | |
wordpress: | |
image: wordpress | |
container_name: wordpress01 | |
restart: always | |
environment: | |
VIRTUAL_HOST: domain.com,www.domain.com | |
LETSENCRYPT_HOST: domain.com,www.domain.com | |
LETSENCRYPT_EMAIL: email@email.com | |
WORDPRESS_DB_PASSWORD: <password> | |
WORDPRESS_DB_NAME: wordpress_db | |
apache-multisite: | |
image: mengfung/alpine-apache2-php7 | |
container_name: virtual-host-server | |
restart: always | |
tty: true | |
volumes: | |
- /etc/apache2/sites-enabled:/etc/apache2/sites-enabled:ro | |
- /www:/www:rw | |
environment: | |
VIRTUAL_HOST: | |
LETSENCRYPT_HOST: | |
LETSENCRYPT_EMAIL: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment