Last active
September 30, 2019 06:35
-
-
Save yutakahashi114/bec5074931e5f5674e1902081c7ce2e4 to your computer and use it in GitHub Desktop.
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.7' | |
services: | |
go: | |
build: | |
context: ./go/ | |
target: dev | |
volumes: | |
- ./go/src:/go/src:cached | |
working_dir: /go/src/app | |
ports: | |
- 8080:8080 | |
tty: true | |
env_file: | |
- ./go/.env | |
mysql: | |
image: mysql:latest | |
volumes: | |
- ./mysql/data:/var/lib/mysql | |
- ./mysql/my.cnf:/etc/mysql/conf.d/my.cnf | |
- ./mysql/init:/docker-entrypoint-initdb.d | |
environment: | |
MYSQL_ROOT_PASSWORD: password | |
MYSQL_DATABASE: database | |
MYSQL_USER: user | |
MYSQL_PASSWORD: password | |
TZ: 'Asia/Tokyo' | |
node: | |
image: node:latest | |
ports: | |
- 3000:3000 | |
volumes: | |
- ./client/var/www:/var/www:cached | |
working_dir: /var/www/project | |
tty: true | |
depends_on: | |
- go | |
- mysql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment