Difference between revisions of "Ubuntu docker-compose.yml example"
Jump to navigation
Jump to search
Line 8: | Line 8: | ||
[[image]]: ubuntu | [[image]]: ubuntu | ||
container_name: Ubuntu_container_1 | container_name: Ubuntu_container_1 | ||
− | restart: always | + | [[restart:]] always |
− | [[tty:]] true | + | stdin_open: true # [[docker run -i]] |
− | + | [[tty:]] true # [[docker run -t]] | |
+ | |||
Ubuntu2: | Ubuntu2: | ||
[[image]]: ubuntu | [[image]]: ubuntu |
Revision as of 15:03, 28 July 2021
This article is a Draft. Help us to complete it.
version: "3.9" services: Ubuntu1: image: ubuntu container_name: Ubuntu_container_1 restart: always stdin_open: true # docker run -i tty: true # docker run -t Ubuntu2: image: ubuntu container_name: Ubuntu_container_2 restart: always tty: true
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: