VS
version: '3'
services:
main:
image: php:7.2-apache
volumes:
- .:/var/www/html
ports:
- 80:80
version: '3'
services:
main:
image: company/my-image
restart: always
ports:
- 80:80
version: '3'
services:
main:
image: company/my-image
restart: always
networks:
- database
ports:
- 80:80
db:
image: mariadb:latest
restart: always
networks:
- database
environment:
MYSQL_ROOT_PASSWORD: super-secret-password
MYSQL_DATABASE: db_name
volumes:
- ./data:/var/lib/mysql
networks:
database:
version: '3'
services:
traefik:
image: traefik:1.6.1
restart: always
ports:
- 80:80
- 443:443
networks:
- web
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./traefik.toml:/traefik.toml
- ./acme.json:/acme.json
container_name: traefik
networks:
web:
external: true
debug = false
logLevel = "INFO"
defaultEntryPoints = ["https","http"]
[traefikLog]
[accessLog]
[entryPoints]
[entryPoints.http]
address = ":80"
[entryPoints.http.redirect]
entryPoint = "https"
[entryPoints.https]
address = ":443"
[entryPoints.https.tls]
[retry]
[docker]
endpoint = "unix:///var/run/docker.sock"
domain = "example.com"
watch = true
exposedbydefault = false
[acme]
email = "jakub.kluvanek@biddingfox.com"
storage = "acme.json"
entryPoint = "https"
OnHostRule = true
[acme.httpChallenge]
entryPoint = "http"
version: '3'
services:
main:
image: nginx
expose:
- 80
networks:
- web
labels:
- "traefik.backend=test"
- "traefik.docker.network=web"
- "traefik.frontend.rule=Host:test.example.com"
- "traefik.enable=true"
- "traefik.port=80"
networks:
web:
external: true
bdfx.cz/es
jakub.kluvanek@biddingfox.com