-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
50 lines (49 loc) · 1.13 KB
/
docker-compose.yaml
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'
networks:
frontend-web:
external: true
backend:
driver: bridge
services:
database:
image: postgres:10
volumes:
- /data/bases/ecobasa.org/data:/var/lib/postgresql/data
# - ./django.sql:/docker-entrypoint-initdb.d/django.sql
env_file:
- ./postgres.env
networks:
- backend
logging:
driver: none
django:
build:
context: ./src
dockerfile: Dockerfile
volumes:
- ./media:/opt/services/ecobasa/media
- ./static-collected:/opt/services/ecobasa/static-collected
- ./whoosh_index:/opt/services/ecobasa/whoosh_index
- ./settings.py:/opt/services/ecobasa/ecobasa/settings.py
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