mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-05-05 22:58:51 +00:00

- 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
35 lines
No EOL
700 B
YAML
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 |