-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathdocker-compose.yml
32 lines (30 loc) · 963 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
---
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 section technically is not needed since using vlan means traffic can go trough all ports regardless of port mapping.
# Port mapping does not work with vlan. If you need any mapping/filtering/blacklisting/whitelisting etc. - do it on the firewall.
# However you can keep it commented as a placeholder for quick look-up which ports are being used by default if need be or getting rid of vlan.
# ports:
# - 8000:8000
# - 9000:9000
networks:
dockervlan:
ipv4_address: 192.168.0.60
networks:
dockervlan:
name: dockervlan
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"