-
-
Notifications
You must be signed in to change notification settings - Fork 144
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (33 loc) · 734 Bytes
/
docker-compose.yml
File metadata and controls
37 lines (33 loc) · 734 Bytes
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
name: zenstack
volumes:
postgres-data:
networks:
workspace:
external: false
services:
workspace:
container_name: zenstack-workspace
image: mcr.microsoft.com/devcontainers/javascript-node:20
restart: always
volumes:
- ..:/workspace:cached
env_file: ./.env
command: sleep infinity
networks:
- workspace
postgres:
container_name: zenstack-postgres
image: postgres
restart: always
volumes:
- postgres-data:/var/lib/postgresql/
env_file: ./.env
networks:
- workspace
ports:
- 5432:5432
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
interval: 5s
timeout: 5s
retries: 5