added network commands to compose
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
name: <your project name>
|
||||
## Crate network first because it is external:true
|
||||
#podman network create frontend
|
||||
|
||||
services:
|
||||
traefik:
|
||||
container_name: traefik
|
||||
@@ -6,5 +8,12 @@ services:
|
||||
- 8080:8080
|
||||
- 80:80
|
||||
volumes:
|
||||
- ./config/traefik.yml:/etc/traefik/traefik.yml:z
|
||||
- ./config/traefik.yml:/etc/traefik/traefik.yml:ro
|
||||
image: traefik:v3.5
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- frontend
|
||||
|
||||
networks:
|
||||
frontend:
|
||||
external: true
|
||||
Reference in New Issue
Block a user