Skip to content

Commit

Permalink
restart unless-stopped, fix pg_isready user
Browse files Browse the repository at this point in the history
  • Loading branch information
seriousm4x committed Oct 14, 2021
1 parent 63beff0 commit f1a8fe9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ services:
container_name: upsnap_django
image: seriousm4x/upsnap:latest
network_mode: host
restart: always
restart: unless-stopped
environment:
- DJANGO_SUPERUSER_USER=admin
- DJANGO_SUPERUSER_PASSWORD=admin
Expand All @@ -28,21 +28,21 @@ services:
container_name: upsnap_redis
image: redis:6
network_mode: host
restart: always
restart: unless-stopped
healthcheck:
test: redis-cli ping
interval: 10s
upsnap_postgres:
container_name: upsnap_postgres
image: postgres:13-alpine
network_mode: host
restart: always
restart: unless-stopped
environment:
- "POSTGRES_USER=upsnap"
- "POSTGRES_PASSWORD=upsnap"
- "POSTGRES_DB=upsnap"
healthcheck:
test: pg_isready
test: pg_isready -U $POSTGRES_USER
interval: 10s
volumes:
- upsnap_db:/var/lib/postgresql/data
Expand Down

0 comments on commit f1a8fe9

Please sign in to comment.