-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
35 lines (33 loc) · 1.03 KB
/
docker-compose.yml
File metadata and controls
35 lines (33 loc) · 1.03 KB
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
34
35
##############################################################
# 10X Vibe Marketer - DoltgreSQL Marketing Intelligence DB
# Developed by 10x.in
#
# Usage:
# docker compose up -d # Start database
# docker compose down # Stop database
# docker compose down -v # Reset (delete all data)
# docker compose logs -f # View logs
#
# Connect:
# psql postgresql://postgres:${DOLTGRES_PASSWORD:-tenx_marketer_2024}@localhost:5432/postgres
##############################################################
services:
doltgresql:
image: dolthub/doltgresql:latest
container_name: 10x-marketer-db
ports:
- "${DOLTGRES_PORT:-5432}:5432"
environment:
DOLTGRES_PASSWORD: "${DOLTGRES_PASSWORD:-tenx_marketer_2024}"
volumes:
- doltgresql-data:/var/lib/dolt
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres || exit 1"]
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
volumes:
doltgresql-data:
driver: local