- vhosts points at /var/www/public (./app/public)
- default MySQL DB is website and you can connect via
- host db
- user docker
- pass docker
jwilder/nginx-proxy and a network
- Processwire
- CraftCMS
- APACHE_SERVERNAME
- APACHE_SERVERALIAS
-
create a network
create network with: docker network create nginx-proxy
-
startup your "master" nginx-proxy (example down here)
version: '2'
services:
nginx-proxy:
restart: unless-stopped
image: jwilder/nginx-proxy
container_name: nginx-proxy
ports:
- "80:80"
- "443:443"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
networks:
default:
external:
name: nginx-proxy
-
create a new folder and copy the content from exampel in there.
-
edit the docker-compose.yml (APACHE_SERVERALIAS, VIRTUAL_HOST) and ad the server alias to your dns/hosts (mac:
sudo vi /etc/hosts
and127.0.0.1 docker.local
) -
run docker-compose up -d