55 lines
1.1 KiB
YAML
55 lines
1.1 KiB
YAML
version: '3'
|
|
|
|
services:
|
|
|
|
mytraefik:
|
|
image: traefik:v1.7.26
|
|
restart: always
|
|
ports:
|
|
- 80:80
|
|
- 443:443
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
- ./traefik/traefik.toml:/traefik.toml
|
|
- ./traefik/acme.json:/acme.json
|
|
|
|
mywww1:
|
|
image: bunkerity/bunkerized-nginx
|
|
restart: always
|
|
volumes:
|
|
- ./web1:/www
|
|
environment:
|
|
- PROXY_REAL_IP=yes
|
|
- REMOTE_PHP=myphp1
|
|
- REMOTE_PHP_PATH=/app
|
|
labels:
|
|
- 'traefik.enable=true'
|
|
- 'traefik.port=8080'
|
|
- 'traefik.frontend.rule=Host:app1.website.com' # replace with your domain
|
|
|
|
mywww2:
|
|
image: bunkerity/bunkerized-nginx
|
|
restart: always
|
|
volumes:
|
|
- ./web2:/www
|
|
environment:
|
|
- PROXY_REAL_IP=yes
|
|
- REMOTE_PHP=myphp2
|
|
- REMOTE_PHP_PATH=/app
|
|
labels:
|
|
- 'traefik.enable=true'
|
|
- 'traefik.port=8080'
|
|
- 'traefik.frontend.rule=Host:app2.website.com' # replace with your domain
|
|
|
|
myphp1:
|
|
image: php:fpm
|
|
restart: always
|
|
volumes:
|
|
- ./web1:/app
|
|
|
|
myphp2:
|
|
image: php:fpm
|
|
restart: always
|
|
volumes:
|
|
- ./web2:/app
|