-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
73 lines (68 loc) · 1.98 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
62
63
64
65
66
67
68
69
70
71
72
73
x-app: &base-app
build:
context: .
depends_on:
- database
- azurite
volumes:
- ./src:/src
- ./tests:/tests
- ./deploy:/deploy
environment: &base-app-env
DEBUG: "True"
SECRET_KEY: "insecure"
AUTHORIZATION_TOKEN: "auth-token"
GET_AUTHORIZATION_TOKEN: "get-auth-token"
AZURITE_QUEUE_CONNECTION_STRING: 'DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;QueueEndpoint=http://azurite:10001/devstoreaccount1;'
OIDC_BASE_URL: "https://login.microsoftonline.com/72fca1b1-2c2e-4376-a445-294d80196804"
OIDC_RP_CLIENT_ID:
OIDC_RP_CLIENT_SECRET:
entrypoint: /deploy/wait-for-it.sh database:5432 --
services:
database:
image: postgis/postgis:15-3.4
ports:
- "5432"
environment:
POSTGRES_DB: statistiek_hub
POSTGRES_USER: statistiek_hub
POSTGRES_PASSWORD: insecure
#command: postgres -c datestyle='iso, dmy'
azurite:
image: mcr.microsoft.com/azure-storage/azurite
ports:
- "10000:10000" # Blob service
- "10001:10001" # Queue service
app:
<<: *base-app
image: ${REGISTRY:-127.0.0.1:5001}/${REPOSITORY:-opdrachten/statistiekhub}:${VERSION:-latest}
build:
context: .
target: app
environment:
DEBUG: false
DJANGO_SETTINGS_MODULE: main.settings
command: /deploy/docker-run.sh
dev:
<<: *base-app
build:
context: .
target: dev
environment:
<<: *base-app-env
DJANGO_SUPERUSER_PASSWORD: "admin"
DJANGO_SUPERUSER_USERNAME: "admin"
DJANGO_SUPERUSER_EMAIL: "[email protected]"
DEBUG: "True"
command: python manage.py runserver 0.0.0.0:8000
test:
<<: *base-app
build:
context: .
target: tests
environment:
<<: *base-app-env
DJANGO_SETTINGS_MODULE: "main.settings"
DEBUG: "True"
OIDC_RP_CLIENT_ID: tests
OIDC_RP_CLIENT_SECRET: tests