This repository has been archived by the owner on Jun 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
66 lines (61 loc) · 1.61 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
version: '3.0'
services:
database:
image: amsterdam/postgres12
ports:
- "5406:5432"
environment:
POSTGRES_PASSWORD: insecure
POSTGRES_DB: handelsregister
POSTGRES_USER: handelsregister
PGDATA: /var/lib/postgresql/data/pgdata
volumes:
- tmpdatabase:/tmp
- ./pgdata:/var/lib/postgresql/data
- "~/.ssh/datapunt.key:/root/.ssh/datapunt.key"
elasticsearch:
image: amsterdam/elasticsearch6
command: elasticsearch -Ehttp.host=0.0.0.0 -Etransport.host=127.0.0.1
ports:
- "9200:9200"
- "9300:9300"
volumes:
- "~/.ssh/datapunt.key:/root/.ssh/datapunt.key"
web:
build: ./web
ports:
- "8102:8080"
depends_on:
- database
- elasticsearch
volumes:
- $PWD/web/handelsregister:/app
environment:
DATABASE_NAME: handelsregister
DATABASE_USER: handelsregister
DATABASE_PASSWORD: insecure
DATABASE_HOST_OVERRIDE: database
ELASTIC_HOST_OVERRIDE: elasticsearch
PGPASSWORD: insecure
UWSGI_HTTP: ":8080"
UWSGI_MODULE: "handelsregister.wsgi:application"
UWSGI_PROCESSES: 4
UWSGI_MASTER: 1
UWSGI_STATIC_MAP: "/handelsregister/static=/static"
UWSGI_OFFLOAD_THREADS: 1
UWSGI_VACUUM: 1
UWSGI_HARAKIRI: 15
UWSGI_DIE_ON_TERM: 1
command: bash /app/docker-run.sh
swaggerui:
image: amsterdam/oauth2swaggerui
ports:
- "8686:8686"
volumes:
tmpdatabase:
# Required for vpn to connect to admin.data.amsterdam.nl
#networks:
# default:
# driver: bridge
# driver_opts:
# com.docker.network.driver.mtu: 1200