-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yaml
70 lines (70 loc) · 1.81 KB
/
compose.yaml
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
services:
mysql8:
image: mysql:8
container_name: sqls_mysql8
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: world
# MYSQL_USER: docker
# MYSQL_PASSWORD: docker
TZ: "Asia/Tokyo"
command: mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
volumes:
- mysql:/var/lib/mysql8
ports:
- 13307:3306
# mysql57:
# image: mysql:5.7
# container_name: sqls_mysql57
# environment:
# MYSQL_ROOT_PASSWORD: root
# MYSQL_DATABASE: world
# MYSQL_USER: docker
# MYSQL_PASSWORD: docker
# TZ: "Asia/Tokyo"
# command: mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
# volumes:
# - mysql:/var/lib/mysql57
# ports:
# - 13306:3306
# mysql56:
# image: mysql:5.6
# container_name: sqls_mysql56
# environment:
# MYSQL_ROOT_PASSWORD: root
# MYSQL_DATABASE: world
# MYSQL_USER: docker
# MYSQL_PASSWORD: docker
# TZ: "Asia/Tokyo"
# command: mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
# volumes:
# - mysql:/var/lib/mysql56
# ports:
# - 13305:3306
postgres12:
image: postgres:12-alpine
container_name: sqls_postgres12
ports:
- "15432:5432"
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=mysecretpassword1234
- PGPASSWORD=mysecretpassword1234
- POSTGRES_DB=todos
- DATABASE_HOST=localhost
volumes:
- postgres:/var/lib/postgresql/data
mssql2019:
image: mcr.microsoft.com/mssql/server:2019-latest
container_name: sqls_mssql2019
ports:
- "11433:1433"
environment:
SA_PASSWORD: Passw0rd
ACCEPT_EULA: Y
volumes:
- mssql:/var/opt/mssql/data
volumes:
mysql:
postgres:
mssql: