Skip to content

Commit

Permalink
add restart policy
Browse files Browse the repository at this point in the history
  • Loading branch information
dkarnutsch committed Nov 6, 2024
1 parent ef2ae5e commit 0e9e3a8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .docker-compose/docker-compose.tpl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ services:
traefik:
image: "traefik:v3.1"
container_name: "traefik"
restart: "on-failure"
command:
# - "--log.level=TRACE"
- "--accessLog=true"
Expand All @@ -21,6 +22,7 @@ services:

imgproxy:
image: darthsim/imgproxy:v3
restart: "on-failure"
ports:
- 8080:8080
environment:
Expand All @@ -30,6 +32,7 @@ services:

oauthproxy:
image: "dkarnutsch/oauth2-proxy:latest"
restart: "on-failure"
ports:
- 4180:4180
environment:
Expand Down Expand Up @@ -69,6 +72,7 @@ services:
dockerfile: Dockerfile
additional_contexts:
- site-configs=../site-configs
restart: "on-failure"
environment:
NODE_ENV: production
POSTGRESQL_HOST: db-postgresql-fra1-74967-do-user-15310175-0.l.db.ondigitalocean.com
Expand Down Expand Up @@ -126,6 +130,7 @@ services:
dockerfile: Dockerfile
additional_contexts:
- api=../api
restart: "on-failure"
environment:
NODE_ENV: production
API_URL: https://admin.cometdxp.com/api
Expand All @@ -140,6 +145,7 @@ services:
additional_contexts:
- api=../api
- site-configs=../site-configs
restart: "on-failure"
environment:
NODE_ENV: production
ADMIN_URL: https://admin.cometdxp.com/
Expand Down

0 comments on commit 0e9e3a8

Please sign in to comment.