forked from pennsignals/dsdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
86 lines (79 loc) · 1.68 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
version: "3.7"
configs:
freetds:
file: ./mssql/etc/freetds.conf
localtime:
file: ./etc/localtime
timezone:
file: ./etc/time
volumes:
mssql-data:
mongo-data:
postgres-data:
mongo:
image: mongo:4.0.13-xenial
configs:
- source: localtime
target: /etc/localtime
- source: timezone
target: /etc/timezone
expose:
- "27017"
ports:
- "27017:27017"
restart: always
stop_signal: SIGINT
volumes:
- mongo-data:/data/db # durable data
command: [--noauth, --smallfiles, --quiet]
# mssql for test
# MSSQL_COLLATION: LATIN1_GENERAL_100_CI_AS_SC
mssql:
image: mcr.microsoft.com/mssql/server:2019-GA-ubuntu-16.0.4
configs:
- source: localtime
target: /etc/localtime
- source: timezone
target: /etc/timezone
environment:
ACCEPT_EULA: Y
MSSQL_PID: Developer
MSSQL_COLLATION: LATIN1_GENERAL_100_CI_AS_SC_UTF8
MSSQL_SA_PASSWORD: YourStrong!Passw0rd
expose:
- "1433"
ports:
- "1433:1433"
stop_signal: SIGINT
secrets:
- secrets
volumes:
- mssql-data:/var/opt/mssql/data # durable
postgres:
image: alpine-3.10-postgres-mongo-tds
build:
context: ./
dockerfile: ./postgres.dockerfile
args:
MONGO_FDW: 1
TDS_FDW: 1
configs:
- source: localtime
target: /etc/localtime
- source: timezone
target: /etc/timezone
- source: freetds
target: /etc/freetds.conf
links:
- mongo
- mssql
expose:
- "5432"
ports:
- "5432:5432"
restart: always
stop_signal: SIGINT
secrets:
- secrets
volumes:
- postgres-data:/usr/local/pgsql/data # durable