Reviewed
This commit is contained in:
@@ -6,8 +6,11 @@ services:
|
||||
build:
|
||||
dockerfile: Dockerfile
|
||||
context: ./php81-apache
|
||||
image: americus259/docker-php:8.1-apache
|
||||
# container_name: myname
|
||||
# If not named with "image" the build gets name of the service definition
|
||||
image: americus259/php:8.1-apache
|
||||
# pull_policy: < always | never | missing | build >
|
||||
# build: always build / rebuild the image. you can also run seperatly "docker compose build --pull" before "docker compose up -d"
|
||||
pull_policy: build
|
||||
restart: always
|
||||
networks:
|
||||
- proxy
|
||||
@@ -20,10 +23,10 @@ services:
|
||||
|
||||
labels:
|
||||
- traefik.enable=true
|
||||
- traefik.http.routers.apache-php.rule=Host(`www.example.com`)
|
||||
- traefik.http.routers.apache-php.tls.certResolver=le
|
||||
- traefik.http.routers.apache-php.service=apache-php
|
||||
- traefik.http.services.apache-php.loadbalancer.server.port=80
|
||||
- traefik.http.routers.my-routername.rule=Host(`www.example.com`)
|
||||
- traefik.http.routers.my-routername.tls.certResolver=le
|
||||
- traefik.http.routers.my-routername.service=my-servicename
|
||||
- traefik.http.services.my-servicename.loadbalancer.server.port=80
|
||||
- traefik.docker.network=proxy
|
||||
|
||||
networks:
|
||||
|
||||
Reference in New Issue
Block a user