Skip to content

Commit

Permalink
Set restart always to compose services
Browse files Browse the repository at this point in the history
  • Loading branch information
dqunbp committed Jun 28, 2023
1 parent b551231 commit 1b1a3e0
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions docker-compose.production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ version: "2"

services:
app:
restart: always
environment:
- NODE_ENV=production
env_file: .env
Expand All @@ -13,6 +12,7 @@ services:
command: "false"

api:
restart: always
extends: app
environment:
- PORT=4000
Expand All @@ -22,13 +22,8 @@ services:
- 4000:4000

worker:
restart: always
extends: app
environment:
- DOT_ENV_FILENAME=.env
command: node catalog-worker.js

# transcoder:
# extends: app
# command: node bin/transcoder.js
# depends_on:
# - api

0 comments on commit 1b1a3e0

Please sign in to comment.