-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose-m1.yml
46 lines (44 loc) · 1.2 KB
/
docker-compose-m1.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
version: '3.0'
services:
elasticsearch:
# Due to a bug in QEMU, this elastic version and platform is required on
# Apple M1 processors.
image: docker.elastic.co/elasticsearch/elasticsearch-oss:6.8.23
platform: arm64
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"
database:
image: amsterdam/postgres12
ports:
- "5435:5432"
environment:
POSTGRES_USER: dataselectie
POSTGRES_DB: dataselectie
POSTGRES_PASSWORD: insecure
volumes:
- "~/.ssh/datapunt.key:/root/.ssh/datapunt.key"
dataselectie:
build: ./web
links:
- elasticsearch
- database
ports:
- "8000:8000"
environment:
UWSGI_HTTP: ":8000"
UWSGI_MODULE: "dataselectie.wsgi:application"
UWSGI_PROCESSES: 4
UWSGI_MASTER: 1
UWSGI_STATIC_MAP: "/static=/static"
UWSGI_VACUUM: 1
UWSGI_HARAKIRI: 15
UWSGI_DIE_ON_TERM: 1
DATABASE_HOST_OVERRIDE: "database"
DATABASE_PORT_OVERRIDE: 5432
ELASTIC_HOST_OVERRIDE: elasticsearch
volumes:
- ./web/dataselectie:/app