Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Traefik docker-compose network settings
version: '3.8'
services:
traefik:
image: traefik:v2.5.0-rc2
container_name: traefik
restart: always
environment:
- TZ=Asia/Taipei
ports:
- "80:80"
- "443:443/tcp"
- "443:443/udp"
volumes:
- ./conf:/etc/traefik
- ./log:/var/log/traefik
- ./ca:/ca
networks:
traefik:
ipv4_address: 172.100.0.1
networks:
traefik:
name: traefik
attachable: true
ipam:
config:
- subnet: 172.100.0.0/24
gateway: 172.100.0.254
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment