forked from techrail/bark
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
33 lines (33 loc) · 890 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
version: "3.7"
services:
bark:
build:
context: .
dockerfile: Dockerfile
# image: 'techrail/bark:0.1'
ports:
- "18080:8080"
depends_on:
postgres:
condition: service_healthy
environment:
- BARK_DATABASE_URL=postgres://auth_user:pass@postgres:5432/bark?sslmode=disable
postgres:
image: postgres:15.4
restart: always
environment:
- POSTGRES_USER=auth_user
- POSTGRES_PASSWORD=pass
- POSTGRES_DB=bark
ports:
- "15432:5432"
volumes:
# Store data
- ./_nocode/db/postgres-data:/var/lib/postgresql/data
# Run the sql script to create tables
- ./_nocode/db/migrations/001_base_schema.up.sql:/docker-entrypoint-initdb.d/create_tables.sql
healthcheck:
test: ["CMD-SHELL", "pg_isready -d bark -U auth_user"]
interval: 10s
timeout: 5s
retries: 5