forked from GUI/covid-vaccine-spotter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
51 lines (48 loc) · 1.18 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
version: "3"
services:
db:
image: postgis/postgis:13-3.0-alpine
environment:
POSTGRES_PASSWORD: dev_password
POSTGRES_DB: vaccinespotter_development
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- "15432:5432"
bootstrap_db:
build: .
image: covid-vaccine-spotter:1
command: "echo 'Bootstrap complete!'"
depends_on:
- db
volumes:
- .:/app
- node_modules:/app/node_modules
environment:
- DB_HOST=db
- DB_USERNAME=postgres
- DB_PASSWORD=dev_password
- DB_NAME=vaccinespotter_development
- LOG_LEVEL=notice
- NODE_ENV=development
entrypoint: /app/bin/docker/bootstrap-entrypoint
task_runner:
image: covid-vaccine-spotter:1
command: "bin/refresh-website"
depends_on:
- bootstrap_db
volumes:
- .:/app
- node_modules:/app/node_modules
environment:
- DB_HOST=db
- DB_USERNAME=postgres
- DB_PASSWORD=dev_password
- DB_NAME=vaccinespotter_development
- LOG_LEVEL=debug
- RUN_ONCE=true
- NODE_ENV=development
entrypoint: /app/bin/docker/entrypoint
volumes:
node_modules:
postgres_data: