23 lines
441 B
YAML
23 lines
441 B
YAML
services:
|
|
nginx:
|
|
image: nginx
|
|
volumes:
|
|
- ./nginx.conf:/etc/nginx/conf.d/default.conf
|
|
ports:
|
|
- 8000:8000
|
|
|
|
server1:
|
|
image: hello
|
|
build:
|
|
context: hello-world
|
|
command: 8000 "Alice"
|
|
ports:
|
|
- 8001:8000
|
|
|
|
server2:
|
|
image: hello
|
|
build:
|
|
context: hello-world
|
|
command: 8000 "Bob"
|
|
ports:
|
|
- 8002:8000 |