-
Notifications
You must be signed in to change notification settings - Fork 114
/
Copy pathdocker-compose.yml
74 lines (69 loc) · 1.81 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
volumes:
postgres_data:
services:
elasticsearch:
build:
context: ./
dockerfile: ./docker/elasticsearch/Dockerfile
ports:
- 127.0.0.1:9200:9200
- 127.0.0.1:9300:9300
environment:
discovery.type: single-node
ES_JAVA_OPTS: '-Xms512m -Xmx512m'
kibana:
image: docker.elastic.co/kibana/kibana:7.16.0
depends_on:
- elasticsearch
ports:
- 127.0.0.1:5601:5601
postgres:
image: postgres:13-alpine
user: postgres
restart: always
volumes:
- postgres_data:/var/lib/postgresql/data/
environment:
POSTGRES_USER: cfpb
POSTGRES_PASSWORD: cfpb
POSTGRES_DB: cfgov
ports:
- 127.0.0.1:5432:5432
python:
image: cfgov-python:local
build:
context: .
dockerfile: Dockerfile
depends_on:
- elasticsearch
- postgres
stdin_open: true
tty: true
environment:
DATABASE_URL: postgres://cfpb:cfpb@postgres/cfgov
ES_HOST: elasticsearch
SECRET_KEY: abcdefghijklmnopqrstuvwxyz
apache:
image: httpd:2.4-alpine
depends_on:
- python
environment:
APACHE_PORT: 80
APACHE_USER: www-data
APACHE_GROUP: www-data
APACHE_SERVER_ROOT: /usr/local/apache2/
APACHE_UPLOADS_F_ALIAS: /src/consumerfinance.gov/cfgov/f/
STATIC_PATH: /tmp
ERROR_LOG: /proc/self/fd/2
ACCESS_LOG: /proc/self/fd/1
LIMIT_REQUEST_BODY: 0
APACHE_PROCESS_COUNT: 4
CFGOV_APPLICATION_HOST: python
# These aren't used in Docker but are used for our legacy EC2 servers
CFGOV_CURRENT: "/usr/local/apache2/"
volumes:
- ./cfgov/apache/conf.d/:/usr/local/apache2/conf.d/
- ./cfgov/apache/conf/:/usr/local/apache2/conf/
- ./cfgov/apache/conf.modules.d/:/usr/local/apache2/conf.modules.d/
ports:
- '8080:80'