-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yaml
More file actions
89 lines (83 loc) · 2.04 KB
/
docker-compose.dev.yaml
File metadata and controls
89 lines (83 loc) · 2.04 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
services:
client:
image: kudelma-client-dev
build:
context: ./client
dockerfile: dev.Dockerfile
environment:
- VITE_BACKEND_URL=/api
volumes:
- ./client:/usr/src/app
# Prevents overwriting node_modules in the container
# This is necessary when using mac and linux containers together
- /usr/src/app/node_modules
container_name: kudelma-client-dev
server:
image: kudelma-backend-dev
build:
context: ./server
dockerfile: dev.Dockerfile
volumes:
- ./server:/usr/src/app
# Prevents overwriting node_modules in the container
# This is necessary when using mac and linux containers together
- /usr/src/app/node_modules
container_name: kudelma-backend-dev
env_file:
- ./server/.env
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_started
nginx:
image: nginx:latest
ports:
- 8080:80
volumes:
- ./nginx.dev.conf:/etc/nginx/nginx.conf:ro
container_name: reverse-proxy
depends_on:
- client
- server
redis:
image: redis:8.2
container_name: kudelma-redis-dev
restart: unless-stopped
volumes:
- redis-data:/data
ports:
- "6379:6379"
postgres:
image: postgres:18.1-bookworm
container_name: kudelma-postgres-dev
restart: unless-stopped
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: prisma
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d postgres"]
interval: 5s
timeout: 2s
retries: 20
prisma-studio:
image: node:lts-bullseye
container_name: kudelma-prisma-studio-dev
working_dir: /usr/src/app
volumes:
- ./server:/usr/src/app
command: npx prisma studio --port 5555 --browser none
ports:
- "5555:5555"
env_file:
- ./server/.env
depends_on:
postgres:
condition: service_healthy
volumes:
redis-data:
pgdata: