-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
48 lines (42 loc) · 1.15 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
version: '3.6'
services:
goathangfire.dashboard:
image: goathangfire.dashboard
build:
context: .
dockerfile: src/GoatHangfire.Dashboard/Dockerfile
depends_on:
- sqlserver
goathangfire.externalJob:
image: goathangfire.externaljob
build:
context: .
dockerfile: src/GoatHangfire.ExternalJob/Dockerfile
depends_on:
- sqlserver
sqlserver:
image: mcr.microsoft.com/mssql/server:2022-latest
user: root
environment:
- ACCEPT_EULA=Y
- MSSQL_SA_PASSWORD=Your_password123
healthcheck:
test: [ "CMD-SHELL", "/opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P ${Sa_Password:-Your_password123} -Q 'SELECT 1' || exit 1" ]
interval: 10s
retries: 10
start_period: 10s
timeout: 3s
ports:
- "1633:1433"
volumes:
- ./ressources/docker/volumes:/var/opt/mssql/data
sqlserver.configurator:
image: mcr.microsoft.com/mssql/server:2022-latest
user: root
depends_on:
sqlserver:
condition: service_healthy
command: >
bash -c "/scripts/init.sh"
volumes:
- ./ressources/docker/scripts:/scripts