-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
109 lines (101 loc) · 2.23 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
name: weathergov-django
services:
database:
image: mysql:8.0 # 8.0.35 in prod
networks:
- weather.gov
volumes:
- ./data/db:/data
environment:
MYSQL_DATABASE: weathergov
MYSQL_USER: drupal
MYSQL_PASSWORD: drupal
MYSQL_ROOT_PASSWORD: drupal
ports:
- 3306:3306
web:
build: .
command: python manage.py runserver 0.0.0.0:8080
volumes:
- .:/code
ports:
- "8080:8080"
environment:
MYSQL_DATABASE: weathergov
MYSQL_USER: drupal
MYSQL_PASSWORD: drupal
MYSQL_ROOT_PASSWORD: drupal
INTEROP_URL: "http://api-interop-layer:8082/"
networks:
- weather.gov
depends_on:
- database
links:
- database
api-proxy:
build:
context: ./weather.gov/tests/api
dockerfile: Dockerfile
environment:
WX_NOW_TIMESTAMP: ${WX_NOW_TIMESTAMP:-}
networks:
- weather.gov
ports:
- 8081:8081
volumes:
- ./weather.gov/tests/api:/app
- /app/node_modules
api-interop-layer:
build:
context: ./weather.gov/api-interop-layer
dockerfile: Dockerfile
# Use the same resource limits as deployed
deploy:
resources:
limits:
memory: 256MB
environment:
PORT: 8082
DB_NAME: weathergov
DB_USERNAME: drupal
DB_PASSWORD: drupal
DB_HOST: database
DB_PORT: 3306
API_URL: http://api-proxy:8081
API_INTEROP_NAME: ${API_INTEROP_NAME:-local}
NEWRELIC_LICENSE: ${NEWRELIC_LICENSE:-}
networks:
- weather.gov
links:
- database
- api-proxy
ports:
- 8082:8082
- 9229:9229
volumes:
- ./weather.gov/api-interop-layer:/app
- /app/node_modules
uswds:
build:
context: ./
dockerfile: Dockerfile.uswds
volumes:
- ./weathergov/frontend/:/app
- /app/node_modules
profiles: ["utility"]
spatial:
build:
context: ./weather.gov/spatial-data
dockerfile: Dockerfile.spatial
image: 18f-spatial-node:20
networks:
- weather.gov
links:
- database
environment:
DB_HOST: database
volumes:
- ./weather.gov/spatial-data/:/app
- /app/node_modules
networks:
weather.gov: