-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
51 lines (47 loc) · 1.13 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
version: "3"
services:
postgres:
image: pgrouting/pgrouting:12-3.0-3.1.0
env_file:
- .env
volumes:
- postgres:/var/lib/postgresql/data
memcached:
image: memcached:1.6-alpine
django:
image: terralego/geocrud-back:latest
build:
context: .
dockerfile: .docker/Dockerfile.back
tty: true
env_file:
- .env
volumes:
#- ./src:/app/src
- ./data:/app/public/data # mount public folder to add data / keep media files
- ./conf/custom.py:/app/src/project/settings/custom.py
- static:/app/public/static # django static hidden volume
depends_on:
- memcached
- postgres
working_dir: /app/src
mbglrenderer:
image: consbio/mbgl-renderer:0.4.0
front:
image: terralego/geocrud-front:latest
build:
context: ./front
dockerfile: ../.docker/Dockerfile.front
ports:
- "${FRONT_PORT}:80"
env_file:
- .env
depends_on:
- django
volumes:
- ./conf/nginx/:/etc/nginx/conf.d/:ro
- ./data/media/:/var/www/config/media/:ro
- static:/var/www/config/static/:ro
volumes:
postgres:
static: