-
-
Notifications
You must be signed in to change notification settings - Fork 258
Expand file tree
/
Copy pathdocker-orchestrate.sh
More file actions
executable file
·26 lines (19 loc) · 842 Bytes
/
docker-orchestrate.sh
File metadata and controls
executable file
·26 lines (19 loc) · 842 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh
########################################################################
# title: Build Complete Project
# author: Alexsandro souza (https://apssouza.com.br)
# url: https://github.com/apssouza22
# description: Build complete Java microservice project
# usage: sh ./build_project.sh
########################################################################
set -ex
# mount a named volume on host to store mongo and elk data
# ** assumes your project folder is 'todo' **
docker volume create --name todo_data
docker volume create --name todo_elk
# create bridge network for project
# ** assumes your project folder is 'todo' **
docker network create -d bridge todo_net
# build images and orchestrate start-up of containers (in this order)
# -p = --project-name
docker-compose -p todo up