-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
53 lines (48 loc) · 1.04 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
51
52
53
version: '3'
services:
nim:
build:
context: .
dockerfile: ./docker/nim/Dockerfile
tty: true
environment:
TZ: Asia/Tokyo
volumes:
- .:/root/project
depends_on:
- mysql
- postgres
mysql:
image: mysql:8.0
platform: linux/x86_64
tty: true
command: --default-authentication-plugin=mysql_native_password
volumes:
- ./db/mysql/init:/docker-entrypoint-initdb.d
- ./db/mysql/my.cnf:/etc/mysql/conf.d/my.cnf
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: database
MYSQL_USER: user
MYSQL_PASSWORD: Password!
TZ: Asia/Tokyo
postgres:
image: postgres
tty: true
environment:
POSTGRES_DB: database
POSTGRES_USER: user
POSTGRES_PASSWORD: Password!
TZ: Asia/Tokyo
volumes:
- ./db/pq:/docker-entrypoint-initdb.d
linux-compile:
image: dockercore/golang-cross
tty: true
volumes:
- .:/go/src
windows-compile:
image: golang:1.16
tty: true
volumes:
- .:/go/src