-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
77 lines (71 loc) · 2.02 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
version: '3.8'
services:
mssql:
image: mcr.microsoft.com/mssql/server:2019-CU27-ubuntu-20.04
command: /bin/bash ./entrypoint.sh
ports:
- '1433:1433'
environment:
ACCEPT_EULA: Y
MSSQL_PID: Express
SA_PASSWORD: A_Str0ng_Required_Password
volumes:
- ./docker/mssql/entrypoint.sh:/entrypoint.sh
- ./docker/mssql/db-init.sh:/db-init.sh
- ./docker/mssql/setup.sql:/setup.sql
healthcheck:
test: /opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P "A_Str0ng_Required_Password" -Q "SELECT 1" || exit 1
interval: 10s
timeout: 3s
retries: 10
start_period: 10s
mysql:
image: mysql:8.0
ports:
- '3306:3306'
environment:
MYSQL_ROOT_PASSWORD: mysql-password
MYSQL_DATABASE: mysql-text
MYSQL_USER: mysql-user
MYSQL_PASSWORD: mysql-password
depends_on:
mssql:
condition: service_healthy
volumes:
- ./docker/mysql/setup.sql:/docker-entrypoint-initdb.d/setup.sql
postgresql:
image: postgres:11.1
ports:
- '5432:5432'
environment:
POSTGRES_DB: postgres-test
POSTGRES_USER: postgres-user
POSTGRES_PASSWORD: postgres-password
volumes:
- ./docker/postgresql/setup.sql:/docker-entrypoint-initdb.d/setup.sql
mongodb:
image: arm64v8/mongo:3.6
ports:
- '27017:27017'
cassandra:
image: cassandra:latest
container_name: cassandra
ports:
- '9042:9042'
environment:
CASSANDRA_DC: local
CASSANDRA_ENDPOINT_SNITCH: GossipingPropertyFileSnitch
healthcheck:
test: [ "CMD", "cqlsh", "-u cassandra", "-p cassandra" ,"-e describe keyspaces" ]
interval: 15s
timeout: 10s
retries: 10
cassandra-load-keyspace:
container_name: cassandra-load-keyspace
image: cassandra:latest
depends_on:
cassandra:
condition: service_healthy
volumes:
- ./docker/cassandra/setup.cql:/setup.cql
command: /bin/bash -c "echo loading cassandra keyspace && cqlsh cassandra -f /setup.cql"