Skip to content

Commit

Permalink
Configure to restart app on reboot
Browse files Browse the repository at this point in the history
  • Loading branch information
jvwong committed Feb 18, 2021
1 parent c7497fc commit bfee1a9
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@ version: "3.8"
services:
proxy:
image: nginx:${NGINX_IMAGE_TAG:-latest}
restart: on-failure
restart: unless-stopped
container_name: proxy_container
depends_on:
- webapp
ports:
- "80:80"
- "443:443"
Expand All @@ -19,7 +17,7 @@ services:
IMAGE_ROOT: /var/www/app/src/styles
webapp:
image: pathwaycommons/factoid:${FACTOID_IMAGE_TAG:-latest}
restart: on-failure
restart: unless-stopped
container_name: webapp_container
depends_on:
- db
Expand Down Expand Up @@ -51,7 +49,7 @@ services:
CRON_SCHEDULE:
grounding:
image: pathwaycommons/grounding-search:${GROUNDING_SEARCH_IMAGE_TAG:-latest}
restart: on-failure
restart: unless-stopped
container_name: grounding_container
ports:
- "${GROUNDING_PORT:-3011}:3000"
Expand All @@ -66,21 +64,21 @@ services:
command: ["./wait-for-elasticsearch.sh", "index:9200", "npm", "run", "boot"]
index:
image: docker.elastic.co/elasticsearch/elasticsearch:6.7.2
restart: on-failure
restart: unless-stopped
container_name: index_container
volumes:
- indata:/usr/share/elasticsearch/data
db:
image: pathwaycommons/rethinkdb-docker:${RETHINKDB_IMAGE_TAG:-latest}
restart: on-failure
restart: unless-stopped
container_name: db_container
ports:
- "${DB_ADMIN_PORT:-8080}:8080"
volumes:
- dbdata:/data
converter:
image: pathwaycommons/factoid-converters:${FACTOID_CONVERTERS_IMAGE_TAG:-latest}
restart: on-failure
restart: unless-stopped
container_name: converters_container
ports:
- "${CONVERTER_PORT:-3082}:8080"
Expand Down

0 comments on commit bfee1a9

Please sign in to comment.