-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.yml
55 lines (51 loc) · 1.33 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
services:
data-storage:
image: mcr.microsoft.com/azure-storage/azurite:3.31.0
ports:
- "10000:10000"
- "10001:10001"
- "10002:10002"
volumes:
- data-storage-data:/data
db:
build:
context: ./docker/mssql-server
ports:
- "1433:1433"
volumes:
- ./data/ees-mssql:/var/opt/mssql/data
- ./data/sql-scripts:/scripts/
environment:
SA_PASSWORD: "Your_Password123"
ACCEPT_EULA: "Y"
command:
- /bin/bash
- -c
- |
# Launch MSSQL and send to background
/opt/mssql/bin/sqlservr &
# Wait 30 seconds for it to be available
sleep 30
# Run the setup script to create the two databases
/opt/mssql-tools/bin/sqlcmd -U sa -P $$SA_PASSWORD -l 30 -e -i /scripts/setup-db.sql
# So that the container doesn't shut down, sleep this thread
sleep infinity
idp:
container_name: ees-idp
build:
context: ./docker/keycloak
ports:
- "5030:8080"
- "5031:8443"
public-api-db:
image: postgres:16.1-alpine
command: postgres -c max_prepared_transactions=100
ports:
- "5432:5432"
volumes:
- ./data/public-api-db:/docker-entrypoint-initdb.d
environment:
POSTGRES_DB: public_data
POSTGRES_PASSWORD: password
volumes:
data-storage-data: