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