-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.prod.template.yml
59 lines (57 loc) · 1.83 KB
/
docker-compose.prod.template.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
# NOTE: aws ecs cli tool only supports version 1 docker-compose file format
version: '2'
services:
rabbitmq:
image: rabbitmq
redis:
image: redis
nginx:
restart: always
build: ./nginx
ports:
- "80:80"
links:
- web:web
volumes_from:
- docs
docs:
build:
context: .
dockerfile: Dockerfile-docs
web:
restart: always
build: ./web
command: bin/web.sh
environment:
DEIS_URL: http://deis.tigerhostapp.com
BROKER_URL: amqp://guest:guest@rabbitmq:5672//
CELERY_RESULT_BACKEND: redis://redis:6379/
AWS_DEFAULT_REGION: us-east-1
DOCKER_CERT_PATH: /code/credentials
DOCKER_NETWORK: addons_default
# TODO: fill out the actual values for these variables
DOCKER_HOST: tcp://54.209.153.101:2376
DATABASE_URL: postgres://user:password@rds_host:5432/db_name
SECRET: abcdefghijklmnopqrstuvwxyz
expose:
- "8000"
links:
- redis:redis
- rabbitmq:rabbitmq
worker:
build: ./web
command: bin/worker.sh
environment:
DEIS_URL: http://deis.tigerhostapp.com
BROKER_URL: amqp://guest:guest@rabbitmq:5672//
CELERY_RESULT_BACKEND: redis://redis:6379/
AWS_DEFAULT_REGION: us-east-1
DOCKER_CERT_PATH: /code/credentials
DOCKER_NETWORK: addons_default
# TODO: fill out the actual values for these variables
DOCKER_HOST: tcp://54.209.153.101:2376
DATABASE_URL: postgres://user:password@rds_host:5432/db_name
SECRET: abcdefghijklmnopqrstuvwxyz
links:
- redis:redis
- rabbitmq:rabbitmq