forked from fossasia/open-event-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
61 lines (53 loc) · 1.28 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
version: '3.5'
x-environment-vars: &environment-vars
POSTGRES_HOST: postgres
DATABASE_URL: postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB}
REDIS_URL: redis://redis:6379/0
ADMIN_EMAIL: "@{ADMIN_EMAIL}"
ADMIN_PASSWORD: "@{ADMIN_PASSWORD}"
x-defaults: &defaults
image: eventyay/open-event-server
restart: unless-stopped
env_file:
- .env
environment:
<<: *environment-vars
depends_on:
- postgres
- redis
volumes:
- ./static:/data/app/static
- ./generated:/data/app/generated # Workaround for #6155
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
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: