tpotce/docker/tpotinit/macvlan/docker-compose.yml
Marco Ochse 2c4eaf0794 Begin of restructuring ...
- deprecate old release
- set virtual version
- we need tpot user / group, adding to installer
- tweaking
- do not use the dev branch, it will break stuff
2023-06-13 23:59:09 +02:00

35 lines
No EOL
700 B
YAML

### This is an example on how to use macvlan driver
### which results in bridging the container fully
### to your network.
version: '3.9'
services:
nginx:
container_name: nginx
restart: always
image: nginx
networks:
mynet:
### unassigned ip from your local network
ipv4_address: 1.2.3.10
nginx2:
container_name: nginx2
restart: always
image: nginx
networks:
mynet:
### unassigned ip from your local network
ipv4_address: 1.2.3.11
networks:
mynet:
driver: macvlan
driver_opts:
parent: eth0
ipam:
config:
### your local network with netmask and gateway
- subnet: 1.2.3.0/24
gateway: 1.2.3.1