forked from nutomic/lemmy
parent
d8361f2e00
commit
a17fbc6e61
2 changed files with 10 additions and 2 deletions
|
@ -2,12 +2,14 @@ version: '2.4'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
db:
|
db:
|
||||||
image: postgres
|
image: postgres:12-alpine
|
||||||
restart: always
|
restart: always
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_USER: rrr
|
POSTGRES_USER: rrr
|
||||||
POSTGRES_PASSWORD: rrr
|
POSTGRES_PASSWORD: rrr
|
||||||
POSTGRES_DB: rrr
|
POSTGRES_DB: rrr
|
||||||
|
volumes:
|
||||||
|
- db:/var/lib/postgresql/data
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "pg_isready -U rrr"]
|
test: ["CMD-SHELL", "pg_isready -U rrr"]
|
||||||
interval: 5s
|
interval: 5s
|
||||||
|
@ -27,3 +29,5 @@ services:
|
||||||
depends_on:
|
depends_on:
|
||||||
db:
|
db:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
|
volumes:
|
||||||
|
db:
|
||||||
|
|
|
@ -2,12 +2,14 @@ version: '2.4'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
db:
|
db:
|
||||||
image: postgres
|
image: postgres:12-alpine
|
||||||
restart: always
|
restart: always
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_USER: rrr
|
POSTGRES_USER: rrr
|
||||||
POSTGRES_PASSWORD: rrr
|
POSTGRES_PASSWORD: rrr
|
||||||
POSTGRES_DB: rrr
|
POSTGRES_DB: rrr
|
||||||
|
volumes:
|
||||||
|
- db:/var/lib/postgresql/data
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "pg_isready -U rrr"]
|
test: ["CMD-SHELL", "pg_isready -U rrr"]
|
||||||
interval: 5s
|
interval: 5s
|
||||||
|
@ -26,3 +28,5 @@ services:
|
||||||
depends_on:
|
depends_on:
|
||||||
db:
|
db:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
|
volumes:
|
||||||
|
db:
|
||||||
|
|
Loading…
Reference in a new issue