Skip to content

Commit

Permalink
restart containers automatically
Browse files Browse the repository at this point in the history
Co-Authored-By: Francesco Frassinelli <[email protected]>
  • Loading branch information
willemarcel and frafra committed Oct 23, 2020
1 parent c5bc523 commit 951039f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ services:
backend:
<<: *backend
container_name: backend
restart: always
labels:
- traefik.http.routers.backend.rule=Host(`localhost`) && PathPrefix(`/api/`)
- traefik.http.services.backend.loadbalancer.server.port=5000
Expand All @@ -28,6 +29,7 @@ services:

frontend:
image: hotosm-tasking-manager:frontend
restart: always
networks:
- tm-web
labels:
Expand All @@ -37,12 +39,14 @@ services:
postgresql:
image: mdillon/postgis:11
container_name: postgresql
restart: always
env_file: ${ENV_FILE:-tasking-manager.env}
networks:
- tm-web

traefik:
image: traefik:v2.3
restart: always
ports:
- "80:80"
volumes:
Expand Down

0 comments on commit 951039f

Please sign in to comment.