assign static ips to containers (#383)
This commit is contained in:
parent
19ffd73503
commit
e301b035ad
|
@ -2,7 +2,10 @@ version: "3.7"
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
shared:
|
shared:
|
||||||
driver: bridge
|
ipam:
|
||||||
|
driver: default
|
||||||
|
config:
|
||||||
|
- subnet: 192.168.0.0/24
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
webapp:
|
webapp:
|
||||||
|
@ -23,7 +26,8 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- ./docker/data/sia:/sia-data
|
- ./docker/data/sia:/sia-data
|
||||||
networks:
|
networks:
|
||||||
- shared
|
shared:
|
||||||
|
ipv4_address: 192.168.0.10
|
||||||
expose:
|
expose:
|
||||||
- 9980
|
- 9980
|
||||||
|
|
||||||
|
@ -38,7 +42,8 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- ./docker/data/sia-upload:/sia-data
|
- ./docker/data/sia-upload:/sia-data
|
||||||
networks:
|
networks:
|
||||||
- shared
|
shared:
|
||||||
|
ipv4_address: 192.168.0.11
|
||||||
expose:
|
expose:
|
||||||
- 9980
|
- 9980
|
||||||
|
|
||||||
|
@ -55,7 +60,8 @@ services:
|
||||||
- ./docker/data/caddy/config:/config
|
- ./docker/data/caddy/config:/config
|
||||||
- ./docker/caddy/Caddyfile:/etc/caddy/Caddyfile
|
- ./docker/caddy/Caddyfile:/etc/caddy/Caddyfile
|
||||||
networks:
|
networks:
|
||||||
- shared
|
shared:
|
||||||
|
ipv4_address: 192.168.0.20
|
||||||
ports:
|
ports:
|
||||||
- "80:80"
|
- "80:80"
|
||||||
- "443:443"
|
- "443:443"
|
||||||
|
@ -76,7 +82,8 @@ services:
|
||||||
- ./docker/data/sia/apipassword:/data/sia/apipassword:ro
|
- ./docker/data/sia/apipassword:/data/sia/apipassword:ro
|
||||||
- webapp:/var/www/webportal:ro
|
- webapp:/var/www/webportal:ro
|
||||||
networks:
|
networks:
|
||||||
- shared
|
shared:
|
||||||
|
ipv4_address: 192.168.0.30
|
||||||
expose:
|
expose:
|
||||||
- 80
|
- 80
|
||||||
depends_on:
|
depends_on:
|
||||||
|
@ -110,7 +117,8 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- ./docker/data/handshake/.hsd:/root/.hsd
|
- ./docker/data/handshake/.hsd:/root/.hsd
|
||||||
networks:
|
networks:
|
||||||
- shared
|
shared:
|
||||||
|
ipv4_address: 192.168.0.40
|
||||||
expose:
|
expose:
|
||||||
- 12037
|
- 12037
|
||||||
|
|
||||||
|
@ -128,7 +136,8 @@ services:
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
networks:
|
networks:
|
||||||
- shared
|
shared:
|
||||||
|
ipv4_address: 192.168.0.50
|
||||||
expose:
|
expose:
|
||||||
- 3100
|
- 3100
|
||||||
depends_on:
|
depends_on:
|
||||||
|
@ -143,7 +152,8 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- ./docker/data/health-check/state:/usr/app/state
|
- ./docker/data/health-check/state:/usr/app/state
|
||||||
networks:
|
networks:
|
||||||
- shared
|
shared:
|
||||||
|
ipv4_address: 192.168.0.60
|
||||||
environment:
|
environment:
|
||||||
- HOSTNAME=0.0.0.0
|
- HOSTNAME=0.0.0.0
|
||||||
- PORTAL_URL=nginx
|
- PORTAL_URL=nginx
|
||||||
|
|
Reference in New Issue