-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
68 lines (63 loc) · 1.46 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
version: '3'
services:
webdev:
environment:
DATABASE_URL: postgres://beluga:beluga@postgres:5432/beluga
build:
context: .
dockerfile: Dockerfile.web
command: ./bin/webdev-entrypoint.sh
ports:
- "8080:8080"
volumes:
- .:/app/
depends_on:
- postgres
- redis
- worker
postgres:
image: openmaptiles/postgis
ports:
- "5432"
environment:
POSTGRES_USER: beluga
POSTGRES_PASSWORD: beluga
POSTGRES_DB: beluga
redis:
image: redis
ports:
- "6479"
worker:
restart: "always"
build:
context: .
dockerfile: Dockerfile.worker
volumes:
- ./beluga:/app/beluga
- ./worker:/app/worker
environment:
CELERY_RESULT_BACKEND: redis://redis:6379/0
CELERY_BROKER_URL: redis://redis:6379/0
EVENTBRITE_APP_KEY: ${EVENTBRITE_APP_KEY}
DATABASE_URL: postgres://beluga:beluga@postgres:5432/beluga
COLLECTION_INTERVAL: 40
depends_on:
- postgres
- redis
test:
build:
context: .
dockerfile: ./tests/Dockerfile
volumes:
- .:/app/
environment:
CELERY_RESULT_BACKEND: redis://redis:6379/0
CELERY_BROKER_URL: redis://redis:6379/0
EVENTBRITE_APP_KEY: NOT_A_KEY
DATABASE_URL: postgres://beluga:beluga@postgres:5432/beluga
COVERALLS_REPO_TOKEN: ${COVERALLS_REPO_TOKEN}
command: /bin/true
depends_on:
- postgres
- redis
- webdev