forked from fossasia/open-event-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
63 lines (55 loc) · 1.29 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
version: '3.5'
x-environment-vars: &environment-vars
POSTGRES_HOST: postgres
DATABASE_URL: postgresql://open_event_user:opev_pass@postgres:5432/open_event
REDIS_URL: redis://redis:6379/0
ADMIN_EMAIL: "@{ADMIN_EMAIL}"
ADMIN_PASSWORD: "@{ADMIN_PASSWORD}"
x-defaults: &defaults
image: eventyay/open-event-server:development
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: postgis/postgis:12-3.0-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
web:
<<: *defaults
container_name: opev-web
ports:
- 8080:8080
celery:
<<: *defaults
container_name: opev-celery
depends_on:
- web
environment:
<<: *environment-vars
C_FORCE_ROOT: "true"
command: celery
volumes:
pg:
rd: