Skip to content

Commit

Permalink
Add restart policy in docker compose file
Browse files Browse the repository at this point in the history
  • Loading branch information
U039b committed Feb 12, 2024
1 parent 4991cd6 commit 05b897b
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion deploy_package/no-sso.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ services:
context: .
dockerfile: ./compose/postgres/Dockerfile
image: colander_production_postgres
restart: unless-stopped
volumes:
- production_colander_postgres_data:/var/lib/postgresql/data:Z
- production_colander_postgres_data_backups:/backups:z
Expand All @@ -27,6 +28,7 @@ services:
context: .
dockerfile: ./compose/postgres/Dockerfile
image: colander_production_threatr_postgres
restart: unless-stopped
volumes:
- production_threatr_postgres_data:/var/lib/postgresql/data:Z
- production_threatr_postgres_data_backups:/backups:z
Expand All @@ -35,6 +37,7 @@ services:

colander-front:
image: ghcr.io/piroguetoolsuite/colander:main
restart: unless-stopped
depends_on:
- colander-postgres
- cyberchef
Expand All @@ -53,6 +56,7 @@ services:

colander-worker:
image: ghcr.io/piroguetoolsuite/colander:main
restart: unless-stopped
depends_on:
- colander-postgres
- elasticsearch
Expand All @@ -70,6 +74,7 @@ services:

threatr-front:
image: ghcr.io/piroguetoolsuite/threatr:main
restart: unless-stopped
depends_on:
- threatr-postgres
- elasticsearch
Expand All @@ -84,6 +89,7 @@ services:

threatr-worker:
image: ghcr.io/piroguetoolsuite/threatr:main
restart: unless-stopped
depends_on:
- threatr-postgres
- elasticsearch
Expand All @@ -101,6 +107,7 @@ services:
context: .
dockerfile: ./compose/traefik/Dockerfile
image: colander_production_traefik
restart: unless-stopped
depends_on:
- colander-front
- threatr-front
Expand All @@ -126,6 +133,7 @@ services:

elasticsearch:
image: elasticsearch:8.4.1
restart: unless-stopped
volumes:
- production_colander_es_data:/usr/share/elasticsearch/data
environment:
Expand All @@ -140,6 +148,7 @@ services:
env_file:
- .envs/.production/.minio
command: server /data
restart: unless-stopped
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:9000/minio/health/live" ]
interval: 30s
Expand All @@ -148,7 +157,7 @@ services:

watchtower:
image: containrrr/watchtower
restart: always
restart: unless-stopped
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /etc/timezone:/etc/timezone:ro
Expand All @@ -162,3 +171,4 @@ services:

redis:
image: redis:6
restart: unless-stopped

0 comments on commit 05b897b

Please sign in to comment.