This repository has been archived by the owner on Aug 28, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
83 lines (77 loc) · 1.79 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
version: '2.1'
services:
postgres:
image: quay.io/azavea/postgis:postgres9.5-postgis2.2
environment:
POSTGRES_USER: climate
POSTGRES_PASSWORD: climate
POSTGRES_DB: climate
expose:
- "5432"
volumes:
- ./database_backup:/opt/database_backup
django:
build:
context: ./django
dockerfile: Dockerfile
ports:
- "8082:8082"
- "8080:8080"
links:
- memcached
- postgres
- statsd
environment:
- CC_DEBUG=true
- DEV_USER=$DEV_USER
- DJANGO_LOG_LEVEL=INFO
- AWS_PROFILE=$AWS_PROFILE
- AWS_CACHE_DURATION=31536000
- COMMIT=
volumes:
- .:/opt
- ./django/climate_change_api/logs/:/var/log/
- ./nginx/srv/dist:/opt/doc/build
- $HOME/.aws:/root/.aws:ro
memcached:
image: memcached:1.4-alpine
command: [memcached, -I, 8M, -m, '256']
statsd:
build:
context: ./statsd
dockerfile: Dockerfile
docs:
build:
context: ./nginx
dockerfile: Dockerfile
ports:
- "8084:443"
volumes:
- ./nginx/srv/dist/:/srv/dist/
- ./nginx/etc/nginx/nginx.conf:/etc/nginx/nginx.conf
- ./nginx/etc/nginx/includes/:/etc/nginx/includes/
- ./nginx/etc/nginx/conf.d/docs/:/etc/nginx/conf.d/
nginx:
build:
context: ./nginx
dockerfile: Dockerfile
ports:
- "8088:443"
links:
- django
volumes:
- ./nginx/srv/dist/:/srv/dist/
- ./nginx/etc/nginx/nginx.conf:/etc/nginx/nginx.conf
- ./nginx/etc/nginx/includes/:/etc/nginx/includes/
- ./nginx/etc/nginx/conf.d/app/:/etc/nginx/conf.d/
loadtest:
build:
context: ./loadtest
dockerfile: Dockerfile
ports:
- "8087:8087"
environment:
- API_TOKEN
- API_HOST
volumes:
- .:/opt