mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-09 09:52:10 +00:00
parent
6fe3f6c3eb
commit
ad4dbbcd77
|
@ -2,12 +2,14 @@ version: '2.4'
|
|||
|
||||
services:
|
||||
db:
|
||||
image: postgres
|
||||
image: postgres:12-alpine
|
||||
restart: always
|
||||
environment:
|
||||
POSTGRES_USER: rrr
|
||||
POSTGRES_PASSWORD: rrr
|
||||
POSTGRES_DB: rrr
|
||||
volumes:
|
||||
- db:/var/lib/postgresql/data
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U rrr"]
|
||||
interval: 5s
|
||||
|
@ -27,3 +29,5 @@ services:
|
|||
depends_on:
|
||||
db:
|
||||
condition: service_healthy
|
||||
volumes:
|
||||
db:
|
||||
|
|
|
@ -2,12 +2,14 @@ version: '2.4'
|
|||
|
||||
services:
|
||||
db:
|
||||
image: postgres
|
||||
image: postgres:12-alpine
|
||||
restart: always
|
||||
environment:
|
||||
POSTGRES_USER: rrr
|
||||
POSTGRES_PASSWORD: rrr
|
||||
POSTGRES_DB: rrr
|
||||
volumes:
|
||||
- db:/var/lib/postgresql/data
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U rrr"]
|
||||
interval: 5s
|
||||
|
@ -26,3 +28,5 @@ services:
|
|||
depends_on:
|
||||
db:
|
||||
condition: service_healthy
|
||||
volumes:
|
||||
db:
|
||||
|
|
Loading…
Reference in a new issue