Permalink
Browse files

手元でisubataを動かすためのもの

  • Loading branch information...
handlename committed Oct 22, 2017
1 parent 47f4874 commit 1797773428ab0f12a612152865611c2b61d8bc6b
Showing with 45 additions and 0 deletions.
  1. +2 −0 Makefile
  2. +1 −0 docker/.gitignore
  3. +42 −0 docker/docker-compose.yml
View
@@ -0,0 +1,2 @@
isubata/webapp/go/isubata: isubata/webapp/go/src/isubata/*.go
cd isubata/webapp/go/src/isubata && GOOS=linux GOARCH=amd64 go build -o ../../isubata
View
@@ -0,0 +1 @@
db/*
View
@@ -0,0 +1,42 @@
version: "2"
services:
server1:
image: "ubuntu:16.04"
volumes:
- "./../isubata:/isubata"
environment:
ISUBATA_DB_HOST: db-server
ISUBATA_DB_PASSWORD: password
ports:
- "5000:5000"
depends_on:
- server3
links:
- "server3:db-server"
working_dir: /isubata/webapp/go
command: ./isubata
# server2:
# image: "ubuntu:16.04"
# volumes:
# - "./../isubata:/isubata"
# environment:
# ISUBATA_DB_HOST: db-server
# ports:
# - "5000:5001"
# depends_on:
# - server3
# links:
# - "server3:db-server"
# command: /isubata/webapp/go/isubata
server3:
image: "mysql:5.7.20"
volumes:
- "./../isubata:/isubata"
- "./db:/var/lib/mysql"
environment:
MYSQL_ROOT_PASSWORD: "password"
ports:
- "3306:3306"

0 comments on commit 1797773

Please sign in to comment.