forked from fossasia/open-event-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
76 lines (67 loc) · 1.51 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
version: '3.5'
x-environment-vars: &environment-vars
DATABASE_URL: postgresql://open_event_user:opev_pass@postgres:5432/open_event
ELASTICSEARCH_HOST: elastic:9200
REDIS_URL: redis://redis:6379/0
ADMIN_EMAIL: "@{ADMIN_EMAIL}"
ADMIN_PASSWORD: "@{ADMIN_PASSWORD}"
x-defaults: &defaults
build: .
restart: unless-stopped
environment:
<<: *environment-vars
depends_on:
- postgres
- redis
- elastic
links:
- postgres:postgres
- redis:redis
- elastic:elastic
volumes:
- ./static:/data/app/static
services:
postgres:
image: postgres:10-alpine
container_name: opev-postgres
restart: unless-stopped
volumes:
- pg:/var/lib/postgresql/data
environment:
POSTGRES_USER: open_event_user
POSTGRES_PASSWORD: opev_pass
POSTGRES_DB: open_event
redis:
image: redis:3-alpine
container_name: opev-redis
restart: unless-stopped
command: redis-server
volumes:
- rd:/var/lib/redis/data
elastic:
image: elasticsearch:5.6.12-alpine
container_name: opev-elastic-search
restart: unless-stopped
environment:
- discovery.type=single-node
volumes:
- es:/usr/share/elasticsearch/data
ports:
- 9200:9200
- 9300:9300
web:
<<: *defaults
container_name: opev-web
ports:
- 8080:8080
celery:
<<: *defaults
container_name: opev-celery
environment:
<<: *environment-vars
DEPLOYMENT: celery
C_FORCE_ROOT: "true"
volumes:
pg:
rd:
es: