mirror of
https://github.com/containers/podman-compose.git
synced 2025-08-15 16:22:38 +02:00
add network-alias
This commit is contained in:
@ -5,6 +5,7 @@ networks:
|
||||
services:
|
||||
web1:
|
||||
image: busybox
|
||||
#container_name: web1
|
||||
hostname: web1
|
||||
command: ["/bin/busybox", "httpd", "-f", "-h", "/var/www/html", "-p", "8001"]
|
||||
working_dir: /var/www/html
|
||||
@ -16,6 +17,7 @@ services:
|
||||
- ./test1.txt:/var/www/html/index.txt:ro
|
||||
web2:
|
||||
image: busybox
|
||||
#container_name: web2
|
||||
hostname: web2
|
||||
command: ["/bin/busybox", "httpd", "-f", "-h", "/var/www/html", "-p", "8001"]
|
||||
working_dir: /var/www/html
|
||||
|
Reference in New Issue
Block a user