-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
69 lines (68 loc) · 2 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
version: '3.4'
services:
memorymapperfrontend:
image: ddunc23/memorymapperfrontend
build:
context: .
dockerfile: ./Dockerfile
no_cache: true
expose:
- 3000:3000
depends_on:
- memorymaptoolkit
- db
environment:
- NEXT_PUBLIC_MAPTILER_KEY=${NEXT_PUBLIC_MAPTILER_KEY}
- NEXT_PUBLIC_MEMORYMAPPER_ENDPOINT=${NEXT_PUBLIC_MEMORYMAPPER_ENDPOINT}
- MEDIA_ROOT=${MEDIA_ROOT}
- MEMORYMAPPER_ENDPOINT=${MEMORYMAPPER_ENDPOINT}
- NEXT_PUBLIC_MEDIA_ROOT=${NEXT_PUBLIC_MEDIA_ROOT}
db:
image: kartoza/postgis:16-3.4
volumes:
- postgres_data:/var/lib/postgresql
environment:
- POSTGRES_USER=${DJANGO_DB_USER}
- POSTGRES_DBNAME=${DJANGO_DB_NAME}
- POSTGRES_PASS=${DJANGO_DB_PASSWORD}
expose:
- 5432:5432
memorymaptoolkit:
image: ddunc23/memorymaptoolkit:latest
volumes:
- static:/app/static
- media:/app/media
- backups:/app/backups
expose:
- 8000:8000
environment:
- DJANGO_DB_USER=${DJANGO_DB_USER}
- DJANGO_DB_NAME=${DJANGO_DB_NAME}
- DJANGO_DB_PASSWORD=${DJANGO_DB_PASSWORD}
- DJANGO_SECRET_KEY=${DJANGO_SECRET_KEY}
- DJANGO_ALLOWED_HOSTS=${DJANGO_ALLOWED_HOSTS}
- DJANGO_SECURE_SSL_HOST=${DJANGO_SECURE_SSL_HOST}
- DJANGO_SESSION_COOKIE_SECURE=${DJANGO_SESSION_COOKIE_SECURE}
- DJANGO_CSRF_COOKIE_SECURE=${DJANGO_CSRF_COOKIE_SECURE}
- DJANGO_DB_HOST=${DJANGO_DB_HOST}
- DJANGO_SUPERUSER=${DJANGO_SUPERUSER}
- DJANGO_SUPERUSER_PASSWORD=${DJANGO_SUPERUSER_PASSWORD}
- HTTP_X_FORWARDED_PROTO=${HTTP_X_FORWARDED_PROTO}
depends_on:
- db
entrypoint: /app/entrypoint.sh
nginx:
build: ./nginx
expose:
- 80:80
depends_on:
- memorymaptoolkit
- db
volumes:
- static:/usr/share/nginx/html/static
- media:/usr/share/nginx/html/media
volumes:
postgres_data:
static:
media:
backups: