-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (41 loc) · 1.1 KB
/
docker-compose.yml
File metadata and controls
43 lines (41 loc) · 1.1 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
36
37
38
39
40
41
42
43
services:
dev:
image: mcr.microsoft.com/devcontainers/typescript-node:24-trixie@sha256:7870433befa3e1ed7a131e8360f13c105e52634f6f34dcfabb2cd7d6e3899f6f
container_name: caravel_devcontainer
volumes:
- .:/workspace:cached
- ~/.ssh:/home/node/.ssh:ro
ports:
- 3000:3000
- 3001:3001
- 587:587
- 4983:3002
depends_on:
db:
condition: service_healthy
env_file:
- .env
environment:
POSTGRES_HOST: ${POSTGRES_HOST}
POSTGRES_PORT: ${POSTGRES_PORT}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
command: sleep infinity
db:
image: postgres:18@sha256:b6b4d0b75c699a2c94dfc5a94fe09f38630f3b67ab0e1653ede1b7ac8e13c197
container_name: caravel_postgres
restart: unless-stopped
ports:
- 5432:5432
volumes:
- pgdata:/var/lib/postgresql
env_file:
- .env
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"]
interval: 5s
timeout: 5s
retries: 5
volumes:
pgdata: