add restarts

This commit is contained in:
b1ek 2023-03-12 12:22:48 +10:00
parent 8f99dbfcc3
commit d2c4b9e6d0
Signed by: blek
GPG Key ID: 14546221E3595D0C
1 changed files with 3 additions and 0 deletions

View File

@ -1,6 +1,7 @@
version: '3' version: '3'
services: services:
server: server:
restart: always
build: build:
context: . context: .
dockerfile: Dockerfile dockerfile: Dockerfile
@ -14,10 +15,12 @@ services:
networks: networks:
- homepage - homepage
redis: redis:
restart: always
image: redis:alpine image: redis:alpine
networks: networks:
- homepage - homepage
db: db:
restart: always
image: postgres:alpine image: postgres:alpine
environment: environment:
POSTGRES_PASSWORD: '${DB_PASSWORD}' POSTGRES_PASSWORD: '${DB_PASSWORD}'