-
Notifications
You must be signed in to change notification settings - Fork 2
/
production.yml
68 lines (61 loc) · 1.58 KB
/
production.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.1"
services:
app: &app
build:
context: .
dockerfile: ./compose/production/django/Dockerfile
image: setlistspy_api_production
depends_on:
- redis
- cloudsql-proxy
links:
- redis
env_file:
- ./.envs/.production/.django
- ./.envs/.production/.postgres
ports:
- "6400:6400"
restart: on-failure
command: ./entrypoint
cloudsql-proxy:
image: gcr.io/cloudsql-docker/gce-proxy:1.12
command: /cloud_sql_proxy -instances=setlist-spy:us-west1-b:setlistspy-pql9=tcp:0.0.0.0:5432 -credential_file=/root/.config/gcloud/credentials.json
volumes:
- .config:/root/.config
ports:
- 5432:5432
redis:
image: redis:latest
expose:
- "6379"
celery-worker: &celery-worker
image: setlistspy_api_production
depends_on:
- redis
- cloudsql-proxy
links:
- cloudsql-proxy
- redis
env_file:
- ./.envs/.production/.django
- ./.envs/.production/.postgres
restart: on-failure
ports: []
command: ./start-celeryworker
celery-beat:
<<: *celery-worker
command: ./start-celerybeat
flower:
<<: *celery-worker
depends_on:
- app
- celery-worker
- celery-beat
command: celery flower --app=setlistspy.taskapp --broker="${REDIS_URL}" --basic_auth="${CELERY_FLOWER_USER}:${CELERY_FLOWER_PASSWORD}"
ports:
- "5555:5555"
# Removed with deprecation of Mixesdb webscrape/xml dump functionality
# phantomjs:
# image: codeclou/docker-phantomjs-webdriver-standalone:latest
# ports:
# - "4444:4444"