Difference between revisions of "Ubuntu docker-compose.yml example"
Jump to navigation
Jump to search
Line 5: | Line 5: | ||
services: | services: | ||
Ubuntu1: | Ubuntu1: | ||
− | [[image]]: ubuntu | + | [[docker-compose.yml: image:|image]]: ubuntu |
container_name: Ubuntu_container_1 | container_name: Ubuntu_container_1 | ||
hostname: Ubuntu_container_1 | hostname: Ubuntu_container_1 |
Revision as of 17:32, 15 July 2024
Running two Ubuntu instances:
version: "3.3" services: Ubuntu1: image: ubuntu container_name: Ubuntu_container_1 hostname: Ubuntu_container_1 restart: always stdin_open: true # docker run -i tty: true # docker run -t Ubuntu2: image: ubuntu container_name: Ubuntu_container_2 hostname: Ubuntu_container_2 restart: always stdin_open: true # docker run -i tty: true # docker run -t
Related terms
See also
docker-compose
,docker-compose.yml
: [services
|volumes
|networks
|up
|down
|restart
|logs
|create
|changelog
|version
|secrets
|config
|-v
|-h
|exec], docker-compose pull
,Environment:
, Docker-compose.yml examples,.env
, release notes, expose:, docker-compose --env-file,services.deploy.resources
Advertising: