http_port 192.168.1.2:3128
# transparent configuration ports
http_port  192.168.1.2:3129 intercept---
version: '2.4'
services:
  portainer:
    image: portainer/portainer
    container_name: portainer
    restart: always
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - /path/to/data:/data 
    ports:
      - 8000:8000
      - 9000:9000
    networks:
      vlan:
        ipv4_address: 192.168.0.60
networks:
  dockervlan:
    #This interface should be defined as using null driver. Do not remove it.
    driver: null
    driver_opts:
      parent: eth0
    ipam:
      config:
        - subnet: "192.168.0.0/24"
          ip_range: "192.168.0.64/26"
          gateway: "192.168.0.1"
  dockervlan:
    #This is the interface which is used for containers networking
    driver: macvlan
    driver_opts:
      parent: eth0
    ipam:
      config:
        - subnet: "192.168.0.0/24"
          ip_range: "192.168.0.64/26"
          gateway: "192.168.0.1"➜  ~ curl -v http://darklorian.site:5000
* Rebuilt URL to: http://darklorian.site:5000/
*   Trying 45.141.102.132...
* TCP_NODELAY set
* Connected to darklorian.site (45.141.102.132) port 5000 (#0)
> GET / HTTP/1.1
> Host: darklorian.site:5000
> User-Agent: curl/7.58.0
> Accept: */*
>
< HTTP/1.1 302 FOUND
< Server: gunicorn
< Date: Tue, 13 Apr 2021 04:27:33 GMT
< Connection: close
< Content-Type: text/html; charset=utf-8
< Content-Length: 219
< Location: http://darklorian.site:5000/login
<
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<title>Redirecting...</title>
<h1>Redirecting...</h1>
* Closing connection 0
<p>You should be redirected automatically to target URL: <a href="/login">/login</a>.  If not click the link.%
➜  ~