-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
62 lines (57 loc) · 1.05 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
62
web:
restart: always
build: ./web/
expose:
- "8000"
links:
- postgres:postgres
- redis:redis
- elasticsearch:elasticsearch
env_file: env
volumes:
- ./web:/data/web
command: /usr/bin/gunicorn etsy.wsgi:application --pythonpath etsy -w 2 -b :8000 --reload
nginx:
restart: always
build: ./nginx/
ports:
- "80:80"
volumes_from:
- web
links:
- web:web
postgres:
restart: always
image: postgres:latest
volumes_from:
- data
volumes:
- ./postgres/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
- ./backups/postgresql:/backup
env_file:
- env
expose:
- "5432"
elasticsearch:
restart: always
image: elasticsearch:6.4.2
volumes_from:
- data
expose:
- "9200"
ports:
- 9200:9200
environment:
ES_JAVA_OPTS: "-Xmx256m -Xms256m"
redis:
restart: always
image: redis:latest
expose:
- "6379"
data:
restart: always
image: alpine
volumes:
- ./data/postgresql:/var/lib/postgresql
- ./data/elastic:/usr/share/elasticsearch/data
command: "true"