forked from disease-sh/API
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
48 lines (45 loc) · 897 Bytes
/
docker-compose.dev.yml
File metadata and controls
48 lines (45 loc) · 897 Bytes
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
version: "3.7"
services:
redis:
env_file: .env
container_name: covid-api-redis
command:
[
"redis-server",
"--appendonly",
"yes",
"--requirepass",
"${REDIS_PASSWORD}",
"--port",
"${REDIS_PORT}",
]
volumes:
- redis-data:/data
scraper:
build: .
image: covidapi-scraper
container_name: covid-api-scraper
command: ["npm", "run", "start:scraper"]
restart: always
environment:
- DOCKER=true
env_file:
- .env
networks:
- redis-net
depends_on:
- redis
app:
build: .
image: covidapi-app
container_name: covid-api-server
command: ["npm", "run", "start:devserver"]
restart: always
environment:
- DOCKER=true
env_file:
- .env
ports:
- "${SERVER_PORT}:${SERVER_PORT}"
depends_on:
- scraper