Skip to content

Commit

Permalink
Docker自動再起動設定 (#187)
Browse files Browse the repository at this point in the history
* 本番用コンテナ 自動再起動設定追加

* 開発用コンテナ 自動再起動設定追加
  • Loading branch information
i-kaneko-abel committed Jul 3, 2024
1 parent ce2bfaf commit 67fa9b6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docker-compose-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ services:
- ./site/mongo/configdb:/data/configdb
networks:
- backend-network
restart: always

postgres:
image: postgres:16.1
Expand All @@ -115,6 +116,7 @@ services:
timeout: 5s
retries: 10
start_period: 10s
restart: always

keycloak:
image: quay.io/keycloak/keycloak:23.0.4
Expand Down Expand Up @@ -147,6 +149,7 @@ services:
timeout: 5s
retries: 10
start_period: 10s
restart: always

keycloak-extension:
container_name: keycloak-extension
Expand Down Expand Up @@ -183,6 +186,7 @@ services:
timeout: 5s
retries: 10
start_period: 10s
restart: always

cygnus:
image: fiware/cygnus-ngsi:3.5.0
Expand All @@ -206,6 +210,7 @@ services:
- "CYGNUS_API_PORT=5080"
networks:
- backend-network
restart: always

networks:
backend-network:
Expand Down
7 changes: 7 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ services:
timeout: 5s
retries: 10
start_period: 10s
restart: always

frontend:
image: node:20.10.0
Expand Down Expand Up @@ -79,6 +80,7 @@ services:
- ./frontend/:/app/frontend/
networks:
- frontend-network
restart: always

mongo:
image: mongo:6.0.14
Expand All @@ -95,6 +97,7 @@ services:
- ./site/mongo/configdb:/data/configdb
networks:
- backend-network
restart: always

postgres:
image: postgres:16.1
Expand All @@ -120,6 +123,7 @@ services:
timeout: 5s
retries: 10
start_period: 10s
restart: always

keycloak:
image: quay.io/keycloak/keycloak:23.0.4
Expand Down Expand Up @@ -152,6 +156,7 @@ services:
timeout: 5s
retries: 10
start_period: 10s
restart: always

orion:
image: fiware/orion:3.11.0
Expand All @@ -177,6 +182,7 @@ services:
timeout: 5s
retries: 10
start_period: 10s
restart: always

cygnus:
image: fiware/cygnus-ngsi:3.5.0
Expand All @@ -200,6 +206,7 @@ services:
- "CYGNUS_API_PORT=5080"
networks:
- backend-network
restart: always

networks:
backend-network:
Expand Down

0 comments on commit 67fa9b6

Please sign in to comment.