Skip to content

Instantly share code, notes, and snippets.

@cacapon
Created July 1, 2020 00:14
Show Gist options
  • Save cacapon/9cd0325a31ae863e8bc473f0ed8656d2 to your computer and use it in GitHub Desktop.
Save cacapon/9cd0325a31ae863e8bc473f0ed8656d2 to your computer and use it in GitHub Desktop.
Linuxサーバー構築の時に作ってみたdocker-compose.ymlファイル
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