Created
July 1, 2020 00:14
-
-
Save cacapon/9cd0325a31ae863e8bc473f0ed8656d2 to your computer and use it in GitHub Desktop.
Linuxサーバー構築の時に作ってみたdocker-compose.ymlファイル
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
teacher: | |
build: . | |
networks: | |
- study_network | |
tty: true | |
privileged: true | |
volumes: | |
- ./mount_a:/home/mount_a | |
container_name: tea | |
command: /sbin/init | |
student_a: | |
image: centos:7 | |
networks: | |
- study_network | |
tty: true | |
privileged: true | |
volumes: | |
- ./mount_b:/home/mount_b | |
container_name: s_a | |
command: /sbin/init | |
student_b: | |
image: centos:7 | |
networks: | |
- study_network | |
tty: true | |
privileged: true | |
volumes: | |
- ./mount_c:/home/mount_c | |
container_name: s_b | |
command: /sbin/init | |
networks: | |
study_network: | |
external: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment