-
Notifications
You must be signed in to change notification settings - Fork 13
/
docker-compose.yml
61 lines (59 loc) · 1.69 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
services:
mssql:
image: "mcr.microsoft.com/mssql/server:2017-latest"
entrypoint: /mssql/entrypoint.sh
command: /opt/mssql/bin/sqlservr
environment:
SA_PASSWORD: "Your_password123!"
ACCEPT_EULA: "Y"
volumes:
- ./mssql:/mssql
ports:
- "15785:1433"
trino:
image: "starburstdata/starburst-enterprise:364-e.4"
ports:
- "8080:8080"
volumes:
- ./starburst/etc:/etc/starburst
depends_on:
- mssql
# used to build the production image
prod:
profiles:
- do_not_start
image: cohortextractor
build:
context: .
target: cohortextractor
# should speed up the build in CI, where we have a cold cache
cache_from: # should speed up the build in CI, where we have a cold cache
- ghcr.io/opensafely-core/base-docker
- ghcr.io/opensafely-core/cohortextractor
args:
# this makes the image work for later cache_from: usage
- BUILDKIT_INLINE_CACHE=1
# env vars supplied by make/just
- BUILD_DATE
- REVISION
- VERSION
init: true
# used to build and run the development image, with test dependencies and
# code mounted in
dev:
extends: prod
image: cohortextractor-dev
container_name: cohortextractor-dev
build:
target: cohortextractor-dev
environment:
TPP_DATABASE_URL: "mssql://SA:Your_password123!@mssql:1433/Test_OpenCorona"
EMIS_DATABASE_URL: "trino://trino:8080/mssql/dbo"
EMIS_DATASOURCE_DATABASE_URL: "mssql://SA:Your_password123!@mssql:1433/Test_EMIS"
# uncomment for mssql query logs
# TDSDUMP: stdout
volumes:
- .:/app
depends_on:
- mssql
- trino