forked from prisma/prisma
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
100 lines (90 loc) · 2.28 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
version: '3.7'
# For connection urls to the following instances, see
# https://github.com/prisma/prisma/blob/main/TESTING.md#environment-variables
services:
postgres:
image: postgres:10
restart: always
environment:
- POSTGRES_DB=tests
- POSTGRES_USER=prisma
- POSTGRES_PASSWORD=prisma
ports:
- '5432:5432'
postgres_isolated:
image: postgres:10
restart: always
environment:
- POSTGRES_DB=tests
- POSTGRES_USER=prisma
- POSTGRES_PASSWORD=prisma
ports:
- '5435:5432'
cockroachdb:
image: prismagraphql/cockroachdb-custom:22.1.0
restart: always
command: start-single-node --insecure
ports:
- '26257:26257'
mysql:
image: mysql:8.0
command: --default-authentication-plugin=mysql_native_password --lower_case_table_names=1
restart: always
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=tests
- MYSQL_USER=prisma
ports:
- '3306:3306'
mysql_isolated:
image: mysql:8.0
command: --default-authentication-plugin=mysql_native_password --lower_case_table_names=1
restart: always
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=tests
- MYSQL_USER=prisma
- MYSQL_PASSWORD=prisma
ports:
- '3307:3306'
mariadb:
image: mariadb:10
restart: always
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=tests
- MYSQL_USER=prisma
- MYSQL_PASSWORD=prisma
ports:
- '4306:3306'
mssql:
image: mcr.microsoft.com/mssql/server:2019-latest
restart: always
environment:
- ACCEPT_EULA=Y
- SA_PASSWORD=Pr1sm4_Pr1sm4
ports:
- '1433:1433'
mongodb_migrate:
image: mongo:4
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: prisma
MONGO_INITDB_DATABASE: tests-migrate
ports:
- '27017:27017'
mongodb_migrate_seed:
build: ./mongodb_migrate_seed
depends_on:
- mongodb_migrate
# Replica Set (required for Prisma Client)
mongo:
build: ./mongodb_replica
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: prisma
MONGO_REPLICA_HOST: localhost
MONGO_REPLICA_PORT: 27018
ports:
- '27018:27018'