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.54 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://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB}
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: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
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: