Skip to content

Commit

Permalink
modernize docker-compose.prod.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Hazel authored Mar 24, 2024
1 parent f1d0d70 commit 83d0f8c
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions docker-compose.prod.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
version: "3.7"

services:
redis:
restart: unless-stopped
env_file: .env
container_name: covid-api-redis
command:
[
"redis-server",
Expand All @@ -19,9 +17,8 @@ services:

scraper:
image: novelcovid/novelcovid-api:latest
container_name: covid-api-scraper
restart: unless-stopped
command: ["npm", "run", "start:scraper"]
restart: always
environment:
- DOCKER=true
env_file:
Expand All @@ -33,9 +30,9 @@ services:

app:
image: novelcovid/novelcovid-api:latest
restart: unless-stopped
container_name: covid-api-server
command: ["npm", "start"]
restart: always
environment:
- DOCKER=true
env_file:
Expand Down

0 comments on commit 83d0f8c

Please sign in to comment.