-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
62 lines (56 loc) · 1.44 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
version: '3.3'
services:
api:
build:
context: ./
dockerfile: ./docker/api/Dockerfile
ports:
- "8000:80"
- "5678:5678" # Debug app port
- "5679:5679" # Debug DAP adapter port
volumes:
- ./:/code
environment:
DB_USER: ${DB_USER}
DB_PASS: ${DB_PASS}
DB_HOST: ${DB_HOST}
DB_PORT: ${DB_PORT}
DB_NAME: ${DB_NAME}
DB_DRIVER: ODBC Driver 17 for SQL Server
JWT_SECRET: secret
DEBUG_MODE: True
SQLALCHEMY_DATABASE_URI: ""
PYTHONPATH: "/code"
PUBLICATION_KOOP__PROD__API_KEY: ""
PUBLICATION_KOOP__PROD__RENVOOI_API_URL: "https://renvooiservice-eto.overheid.nl"
PUBLICATION_KOOP__PROD__PREVIEW_API_URL: "https://besluitpreviewservice-eto.overheid.nl"
restart: "no"
security_opt:
- seccomp:unconfined
cap_add:
- SYS_PTRACE
mssql:
image: mcr.microsoft.com/mssql/server:2022-latest
ports:
- "11433:1433"
environment:
ACCEPT_EULA: Y
MSSQL_SA_PASSWORD: 'Passw0rd'
volumes:
- mssql:/var/opt/mssql
- ./docker/mssql/:/opt/sql/:ro
healthcheck:
test: /opt/mssql-tools18/bin/sqlcmd -S localhost -U SA -P Passw0rd -Q "SELECT 1" -b -C -o /dev/null
interval: 1s
timeout: 3s
retries: 10
start_period: 1s
restart: "no"
# mailhog:
# image: mailhog/mailhog
# ports:
# - "8025:8025"
# - "1025:1025"
# restart: "no"
volumes:
mssql: