-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathlocal.yml
82 lines (75 loc) · 1.77 KB
/
local.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
77
78
79
80
81
82
version: "3.1"
services:
app: &app
image: setlistspy_api_local
build:
context: .
dockerfile: ./compose/local/django/Dockerfile
depends_on:
- postgresql
- redis
links:
- postgresql
- redis
env_file:
- ./.envs/.local/.django
- ./.envs/.local/.postgres
ports:
- "6400:6400"
restart: on-failure
volumes:
- .:/usr/src/app
- ./compose/local/django/prepare_db:/usr/src/app/prepare_db
- ./compose/local/django/entrypoint:/usr/src/app/entrypoint
command: /usr/src/app/entrypoint
postgresql:
image: setlistspy_psql
build:
context: .
dockerfile: compose/local/postgres/Dockerfile
volumes:
- ./database:/var/lib/postgresql
env_file:
- ./.envs/.local/.postgres
expose:
- "5432"
labels:
- postgresql
redis:
image: redis:latest
expose:
- "6379"
celery-worker: &celery-worker
image: setlistspy_api_local
depends_on:
- redis
- postgresql
links:
- postgresql
- redis
env_file:
- ./.envs/.local/.django
- ./.envs/.local/.postgres
restart: on-failure
volumes:
- .:/usr/src/app
- ./compose/local/django/celery/worker/start:/usr/src/app/start-celeryworker
- ./compose/local/django/celery/beat/start:/usr/src/app/start-celerybeat
ports: []
command: ./start-celeryworker
celery-beat:
<<: *celery-worker
command: ./start-celerybeat
flower:
<<: *celery-worker
depends_on:
- app
- celery-worker
- celery-beat
command: flower --app=setlistspy.taskapp --broker="${REDIS_URL}"
ports:
- "5555:5555"
phantomjs:
image: codeclou/docker-phantomjs-webdriver-standalone:latest
ports:
- "4444:4444"