-
-
Notifications
You must be signed in to change notification settings - Fork 21
/
docker-compose.nginx.yml
50 lines (48 loc) · 1.07 KB
/
docker-compose.nginx.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
version: "2"
services:
nginx:
image: nginx
ports:
- "3000:80"
links:
- cornerwise
volumes:
- ./docker-support/cornerwise.conf:/etc/nginx/conf.d/default.conf
- ./client:/static
- media:/media:ro
cornerwise:
image: bdsand/cornerwise:latest
env_file:
- ./docker-support/common.env
- ./docker-support/nginx.env
environment:
APP_MODE: "production"
ALLOWED_HOSTS: "*"
DJANGO_SERVE_STATIC: "0"
DJANGO_SERVE_MEDIA: "0"
GOOGLE_APPLICATION_CREDENTIALS: "/google_credentials.json"
links:
- postgres
- redis
working_dir: /app/
command: bash /app/start.sh
volumes:
- media:/media
- ./data:/data
- ./server:/app
- ./server/cornerwise/google_credentials.json:/secrets/google_credentials.json
postgres:
image: mdillon/postgis:9.4
volumes:
- data:/var/lib/postgresql/data
redis:
image: redis:latest
volumes:
- redis_data:/data
volumes:
redis_data:
driver: local
data:
driver: local
media:
driver: local