Skip to content

Commit

Permalink
add restarts to services
Browse files Browse the repository at this point in the history
  • Loading branch information
avibn committed Apr 12, 2024
1 parent ddf65b6 commit b1d5fd5
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 29 deletions.
58 changes: 29 additions & 29 deletions docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,37 +42,37 @@ services:
ports:
- ${REDIS_INSIGHT_PORT}:8001

# server:
# build: ./server
# ports:
# - 5000:5000
# depends_on:
# - db
# - redis
# env_file:
# - ./.env.server
# networks:
# - backend
server:
build: ./server
ports:
- 5000:5000
depends_on:
- db
- redis
env_file:
- ./.env.server
networks:
- backend

# client:
# build: ./client
# ports:
# - 3000:3000
# depends_on:
# - server
# networks:
# - backend
client:
build: ./client
ports:
- 3000:3000
depends_on:
- server
networks:
- backend

# azure-function:
# build: ./azure
# ports:
# - "7071:80"
# env_file:
# - ./.env.azure
# volumes:
# - ./etc/test-secrets:/azure-functions-host/Secrets
# networks:
# - backend
azure-function:
build: ./azure
ports:
- "7071:80"
env_file:
- ./.env.azure
volumes:
- ./etc/test-secrets:/azure-functions-host/Secrets
networks:
- backend
# depends_on:
# - azurite

Expand Down
2 changes: 2 additions & 0 deletions docker-compose.prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ services:
DOCUMENT_BLOB_CONTAINER: ${DOCUMENT_BLOB_CONTAINER}
MAINTENANCE_BLOB_CONTAINER: ${MAINTENANCE_BLOB_CONTAINER}
PROPERTY_BLOB_CONTAINER: ${PROPERTY_BLOB_CONTAINER}
restart: always
networks:
- backend

Expand All @@ -57,6 +58,7 @@ services:
- 3000:3000
depends_on:
- server
restart: always
networks:
- backend

Expand Down

0 comments on commit b1d5fd5

Please sign in to comment.