-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
88 lines (81 loc) · 1.73 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
version: '2.1'
services:
postgresdb:
restart: always
image: postgres:12
env_file:
- docker-files/databases.environ
volumes:
- ./database/dump_latest.sql:/docker-entrypoint-initdb.d/dump_latest.sql
- pgdata:/var/lib/postgresql/data
networks:
- shopnet
redishost:
image: redis
volumes:
- 'redisdata:/data'
networks:
- shopnet
elasticsearch:
image: elasticsearch:7.7.0
container_name: elasticsearch
environment:
- cluster.name=es-docker-cluster
- discovery.type=single-node
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- esdata:/Users/mohi/elasticsearch/data
networks:
- shopnet
ports:
- 9200:9200
webapp:
restart: always
build:
context: .
dockerfile: docker-files/webapp.dockerfile
image: weltladen
env_file:
- docker-files/databases.environ
environment:
- VIRTUAL_HOST=www.example.com
- DJANGO_DEBUG=1
- DJANGO_SETTINGS_MODULE=weltladen.settings.develop
volumes:
- ./:/web
entrypoint: /usr/local/bin/entrypoint.sh
depends_on:
- postgresdb
- redishost
- elasticsearch
networks:
- shopnet
ports:
- 9009:9009
worker:
restart: always
image: weltladen
environment:
- DJANGO_SETTINGS_MODULE=weltladen.settings.develop
env_file:
- docker-files/databases.environ
- docker-files/email.environ
command: /web/worker.py
volumes:
- ./:/web
depends_on:
- postgresdb
- redishost
networks:
- shopnet
networks:
shopnet:
volumes:
pgdata:
redisdata:
esdata: