-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (42 loc) · 946 Bytes
/
docker-compose.yml
File metadata and controls
44 lines (42 loc) · 946 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
services:
packet:
build:
context: .
dockerfile: ./Dockerfile.dev
env_file:
- path: ".env"
required: true
ports:
- "8000:8000"
develop:
watch:
- action: sync+restart
path: packet
target: /opt/packet/packet
- action: rebuild
path: frontend
target: /opt/packet/frontend
networks:
- packet-network-dev
depends_on:
postgres:
condition: service_healthy
restart: true
postgres:
image: "docker.io/postgres:17"
networks:
- packet-network-dev
environment:
POSTGRES_USER: "postgres"
POSTGRES_DB: "postgres"
POSTGRES_PASSWORD: "mysecretpassword"
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d postgres"]
interval: 10s
retries: 5
start_period: 30s
timeout: 10s
networks:
packet-network-dev: