-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
54 lines (51 loc) · 1017 Bytes
/
docker-compose.yaml
File metadata and controls
54 lines (51 loc) · 1017 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
services:
jt-postgres:
image: postgres:latest
restart: unless-stopped
user: postgres
container_name: jt-postgres
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
volumes:
- postgres-db:/var/lib/postgresql/data
networks:
- jt-network
env_file:
- path: .env
healthcheck:
test: ["CMD", "pg_isready"]
interval: 10s
timeout: 5s
retries: 5
app:
build:
context: .
dockerfile: Dockerfile
ports:
- "127.0.0.1:5173:5173"
env_file:
- path: .env
networks:
- jt-network
depends_on:
- jt-postgres
workspace:
build:
context: .
dockerfile: Dockerfile-dev
container_name: jt-workspace
env_file:
- path: .env
networks:
- jt-network
tty: true
stdin_open: true
depends_on:
- jt-postgres
volumes:
postgres-db:
networks:
jt-network:
driver: bridge