-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
50 lines (47 loc) · 1.01 KB
/
docker-compose.yml
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
version: "3.2"
services:
go-gin:
container_name: go-gin
hostname: go-gin
build: ./back/app
restart: always
depends_on:
- mysql
links:
- mysql
ports:
- 8080:8080
#links:
#- mysel
tty:
true
volumes:
- ./back/app:/app
command:
go run /app/main.go
mysql:
container_name: mysql
hostname: mysql
build: ./back/mysql/
environment:
MYSQL_ROOT_PASSWORD: yowayowa01
MYSQL_DATABASE: ahchoo
MYSQL_USER: yowa
MYSQL_PASSWORD: yowayowa01
TZ: 'Asia/Tokyo'
#command: mysqld --character-set-server=utf8 --collation-server=utf8
volumes:
- ./back/mysql/mysql:/var/lib/mysql
ports:
- 3001:3306
react:
container_name: react
hostname: react
build: ./front/React
restart: always
ports:
- 8081:3000
volumes:
- ./front/React/mapviewer:/app
#entrypoint: "/bin/sh -c 'npm install'"
command : ["sh", "-c", "cd /app && yarn start"]