-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
61 lines (53 loc) · 1.21 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
version: "3.8"
services:
web:
restart: always
build:
dockerfile: apps/Dockerfile
expose:
- "8000"
links:
- postgres:postgres
volumes:
- web-django:/usr/src/construction
- web-static:/usr/src/construction/static
command: python /usr/local/bin/gunicorn config.wsgi:application -w 2 -b :8000
env_file: .env
environment:
DEBUG: 'true'
depends_on:
- postgres
nginx:
restart: always
build: ./nginx/
ports:
- "80:80"
volumes:
- web-static:/www/static
links:
- web:web
postgres:
restart: always
image: postgres:latest
environment:
POSTGRES_DB: "postgres"
POSTGRES_HOST_AUTH_METHOD: "trust"
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data/
elasticsearch:
restart: always
image: docker.elastic.co/elasticsearch/elasticsearch:7.10.2
environment:
- xpack.security.enabled=false
- discovery.type=single-node
volumes:
- elasticsearch-data:/usr/share/elasticsearch/data
ports:
- "9200:9200"
volumes:
pgdata:
web-django:
web-static:
elasticsearch-data: