-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
47 lines (44 loc) · 1.06 KB
/
docker-compose.yml
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
services:
app:
container_name: backend
build:
context: .
dockerfile: ./apps/backend/Dockerfile
ports:
- "${BACKEND_PORT}:${BACKEND_PORT}"
env_file:
- ./apps/backend/.env.docker
networks:
- app_network
environment:
- NODE_ENV=production
- PORT=${BACKEND_PORT}
- REDIS_HOST=redis
- REDIS_PORT=${REDIS_PORT}
- CLIENT_URL=http://${HOST}:${CLIENT_PORT}
depends_on:
- redis
volumes:
- ./apps/backend:/app/apps/backend
- ./packages/database/prisma:/app/packages/database/prisma # Mount correct prisma directory
- /app/apps/backend/node_modules
redis:
image: "redis:latest"
ports:
- "${REDIS_PORT}:${REDIS_PORT}"
networks:
- app_network
client:
container_name: client
build:
context: .
dockerfile: ./apps/client/Dockerfile
ports:
- "${CLIENT_PORT}:${CLIENT_PORT}"
environment:
- VITE_SERVER_URL=http://${HOST}:${BACKEND_PORT}
networks:
- app_network
networks:
app_network:
driver: bridge