use service profiles
This commit is contained in:
parent
1a3a900efa
commit
dec11477a3
9 changed files with 16 additions and 79 deletions
|
|
@ -3,7 +3,8 @@ version: '3'
|
|||
services:
|
||||
traefik:
|
||||
container_name: traefik-local
|
||||
image: traefik:v2.5.3
|
||||
image: traefik:v2.5.3
|
||||
profiles: ["testing"]
|
||||
ports:
|
||||
- 80:80
|
||||
- 443:443
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ services:
|
|||
traefik:
|
||||
container_name: traefik
|
||||
image: traefik:v2.5.3
|
||||
profiles: ["production"]
|
||||
command:
|
||||
- --providers.docker=true
|
||||
- --providers.docker.exposedbydefault=false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue