forked from fossasia/open-event-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
46 lines (41 loc) · 828 Bytes
/
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
version: '2'
services:
data:
image: postgres:9.5
environment:
POSTGRES_PASSWORD: 'test'
volumes:
- /var/lib/postgresql
command: echo true
postgres:
image: postgres:9.5
environment:
POSTGRES_PASSWORD: 'test'
volumes_from:
- data
ports:
- '5432:5432'
redis:
image: 'redis:3-alpine'
command: redis-server
volumes:
- 'redis:/var/lib/redis/data'
ports:
- '6379:6379'
web:
build: .
environment:
DATABASE_URL: postgresql://postgres:test@postgres:5432/opev
REDIS_URL: redis://redis:6379/0
C_FORCE_ROOT: "true"
SERVER_NAME: $SERVER_NAME
links:
- postgres:postgres
- redis:redis
volumes:
- 'storage:/open_event/static'
ports:
- '80:5000'
volumes:
redis:
storage: