forked from cfpb/consumerfinance.gov
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.prod.yml
33 lines (29 loc) · 1017 Bytes
/
docker-compose.prod.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
version: "3.4"
volumes:
postgres_data:
services:
python2:
build:
target: cfgov-prod
environment: &python_env
ALLOW_ADMIN_URL: 'True'
APACHE_UPLOADS_F_ALIAS: /src/cfgov-refresh/cfgov/f/
DATABASE_URL: postgres://cfpb@postgres/cfgov
DJANGO_ADMIN_USERNAME: admin
DJANGO_ADMIN_PASSWORD: admin
SECRET_KEY: abcdefghijklmnopqrstuvwxyz
MEDIA_ROOT: /src/cfgov-refresh/cfgov/f/
PGPASSWORD: cfpb
ports:
- "8000:80" # Apache
volumes: &python_volumes
- ./cfgov/apache/conf/:/src/cfgov-refresh/cfgov/apache/conf/
- ./cfgov/apache/conf.d/:/src/cfgov-refresh/cfgov/apache/conf.d/
- ./cfgov/apache/conf.modules.d/:/src/cfgov-refresh/cfgov/apache/conf.modules.d/
python3:
build:
target: cfgov-prod
environment: *python_env
ports:
- "8333:80" # Apache
volumes: *python_volumes