-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
73 lines (72 loc) · 1.78 KB
/
docker-compose.yml
File metadata and controls
73 lines (72 loc) · 1.78 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
version: "3"
services:
app:
container_name: styl-app-dev
platform: "linux/amd64"
working_dir: /app
expose:
- "8000"
ports:
- "8000:8000"
environment:
PORT: 8000
env_file:
- ./.env
- ./.env.local
volumes:
- .:/app:consistent
build:
context: .
dockerfile: Dockerfile
command:
[
"uvicorn",
"src.main:app",
"--host",
"0.0.0.0",
"--port",
"8000",
"--reload",
]
depends_on:
psql:
condition: service_healthy
psql:
image: postgres:latest
container_name: postgres-dev
# restart: always
ports:
- "6000:5432"
environment:
POSTGRES_USER: "postgres"
POSTGRES_PASSWORD: "password"
PGDATA: /data/postgres
volumes:
- ./dev_db/:/data/postgres
- ./docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 10s
retries: 3
start_period: 30s
client:
container_name: styl-front-dev
platform: "linux/amd64"
working_dir: /app
build:
context: ./client
dockerfile: Dockerfile.dev
expose:
- "3000"
ports:
- "3000:3000"
environment:
PORT: 3000
env_file:
- ./.env
- ./.env.local
volumes:
- ./client/src:/app/src:consistent
depends_on:
- app