forked from fossasia/open-event-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
52 lines (46 loc) · 1.08 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
version: '2'
services:
postgres:
image: postgres:10-alpine
volumes:
- pg:/var/lib/postgresql/data
- ./postgres-initdb.d:/docker-entrypoint-initdb.d
ports:
- 127.0.0.1:5432:5432
redis:
image: redis:3-alpine
command: redis-server
volumes:
- rd:/var/lib/redis/data
ports:
- 127.0.0.1:6379:6379
elastic:
image: docker.elastic.co/elasticsearch/elasticsearch:6.3.0
environment:
- discovery.type=single-node
volumes:
- es:/usr/share/elasticsearch/data
ports:
- 127.0.0.1:9200:9200
- 127.0.0.1:9300:9300
web:
build: .
environment:
DATABASE_URL: postgresql://john:start@postgres:5432/oevent_2
ELASTICSEARCH_HOST: elastic:9200
REDIS_URL: redis://redis:6379/0
C_FORCE_ROOT: "true"
ADMIN_EMAIL: "@{ADMIN_EMAIL}"
ADMIN_PASSWORD: "@{ADMIN_PASSWORD}"
links:
- postgres:postgres
- redis:redis
- elastic:elastic
volumes:
- ./data/web:/open_event/static
ports:
- 0.0.0.0:5000:5000
volumes:
pg:
rd:
es: