forked from agilob/openhack-containers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
63 lines (59 loc) · 1.38 KB
/
docker-compose.yaml
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
version: '3.3'
services:
poi:
image: poi
container_name: poi
links:
- sqlserver
networks:
- openhack
environment:
- ASPNETCORE_ENVIRONMENT=Local # Disable SSL
# - ASPNETCORE_ENVIRONMENT="Development"
- SQL_SERVER=sqlserver
- SQL_USER=SA
- SQL_PASSWORD=OpenHack12345
- SQL_DBNAME=mydrivingDB
- WEB_PORT=80
- CONFIG_FILES_PATH="/secrets"
# - WEB_SERVER_BASE_URI="http://0.0.0.0"
healthcheck:
test: ["CMD", "curl", "-s", "http://0.0.0.0:8080/api/poi/healthcheck"]
interval: 60s
timeout: 3s
retries: 60
ports:
- 8080:80
expose:
- 80
# run this to create db:
# docker exec -it sqlserver /opt/mssql-tools/bin/sqlcmd -S localhost -U SA -P "OpenHack12345" -Q 'CREATE DATABASE mydrivingDB'
sqlserver:
image: mcr.microsoft.com/mssql/server:2017-latest
container_name: sqlserver
hostname: sqlserver
networks:
- openhack
environment:
- ACCEPT_EULA=Y
- SA_PASSWORD=OpenHack12345
ports:
- 1433:1433
expose:
- 1433
dataload:
image: openhack/data-load:v1
container_name: dataload
networks:
- openhack
links:
- sqlserver
environment:
- SQLFQDN=sqlserver
- SQLUSER=SA
- SQLPASS=OpenHack12345
- SQLDB=mydrivingDB
networks:
openhack:
external:
name: openhack