This repository has been archived by the owner on Jun 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
83 lines (76 loc) · 1.72 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
74
75
76
77
78
79
80
81
82
83
version: "3.4"
x-app: &app
build:
context: .
target: app
ports:
- 8000
volumes:
- ./src:/src
- ./tests:/tests
- ./deploy:/deploy
links:
- database
environment: &app_environment
DATAPUNT_API_URL: "https://api.data.amsterdam.nl/"
SECRET_KEY: "dev"
OBJECTSTORE_PASSWORD: "insecure"
OBJECTSTORE_UPLOAD_CONTAINER_NAME: dev
OBJECTSTORE_ENV: 'dev'
services:
database:
image: amsterdam/postgres11
ports:
- 5432
environment:
POSTGRES_DB: dev
POSTGRES_USER: dev
POSTGRES_PASSWORD: dev
volumes:
- "~/.ssh/datapunt.key:/root/.ssh/datapunt.key"
app:
<<: *app
image: docker-registry.data.amsterdam.nl/datapunt/blackspots:${VERSION:-latest}
dev:
<<: *app
build:
context: .
target: dev
environment:
<<: *app_environment
DEBUG: 1
USE_JWKS_TEST_KEY: "True"
command: "./manage.py runserver 0.0.0.0:8000"
update_stadsdeel_errors:
build:
context: .
target: app
links:
- database
environment:
CRET_KEY: "dev"
TABASE_NAME: "dev"
TABASE_USER: "dev"
TABASE_PASSWORD: "dev"
entrypoint: /deploy/wait-for-it.sh database:5432 --
command: deploy/docker-update-stadsdelen.sh
test:
build:
context: .
target: tests
volumes:
- ./src:/src
- ./tests:/tests
- ./deploy:/deploy
environment:
SECRET_KEY: "tests"
AUTHORIZATION_TOKEN: "dev"
DJANGO_SETTINGS_MODULE: "main.settings"
OBJECTSTORE_UPLOAD_CONTAINER_NAME: test
OBJECTSTORE_ENV: test
PYTEST_ADDOPTS:
PYTHONBREAKPOINT:
depends_on:
- database
entrypoint: /deploy/wait-for-it.sh database:5432 --
command: pytest