-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.production.yaml
More file actions
49 lines (44 loc) · 1000 Bytes
/
docker-compose.production.yaml
File metadata and controls
49 lines (44 loc) · 1000 Bytes
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
version: '2'
networks:
backend:
driver: bridge
services:
database:
image: kartoza/postgis
env_file:
- ./postgres.env
networks:
- backend
logging:
driver: none
django:
build:
context: .
dockerfile: dockerfile.production
volumes:
- .:/opt/services/ecobasa
- ./media:/opt/services/ecobasa/media
- ./static-collected:/opt/services/ecobasa/static-collected
- ./whoosh_index:/opt/services/ecobasa/whoosh_index
depends_on:
- database
networks:
- backend
logging:
driver: none
nginx:
image: nginx
expose: ["80"]
env_file:
- ./frontend.env
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf
- ./static-collected:/opt/services/ecobasa/static-collected
- ./media:/opt/services/ecobasa/media
depends_on:
- django
networks:
- backend
- frontend-web
logging:
driver: none