This repository was archived by the owner on Feb 17, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
72 lines (67 loc) · 1.62 KB
/
Copy pathdocker-compose.yml
File metadata and controls
72 lines (67 loc) · 1.62 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
version: "3.5"
services:
frontend:
container_name: italent-frontend
image: italent-frontend
build:
context: ./services/frontend
dockerfile: Dockerfile.local
ports:
- 3000:3000 # port neutrino.js
- 3031:3031 # port for webpack analyzer
volumes:
- ./services/frontend:/italent-frontend
- frontend-data:/italent-frontend/node_modules
env_file:
- ./env/web.env
stdin_open: true
backend:
container_name: italent-backend
image: italent-backend
build:
context: ./services/backend
dockerfile: Dockerfile.local
ports:
- 8080:8080 # port backend API
- 5555:5555 # port for Prisma Studio
volumes:
- ./services/backend:/italent-backend
- backend-data:/italent-backend/node_modules
env_file:
- ./env/backend.env
- .env
depends_on:
- redis
- postgres
postgres:
container_name: italent-postgres
image: postgres:12-alpine
ports:
- 5432:5432
volumes:
- postgres-data:/var/lib/postgresql/data
restart: always
environment:
POSTGRES_PASSWORD: api
POSTGRES_USER: api
POSTGRES_DB: testdb
redis:
container_name: italent-redis
image: redis:6-alpine
command: "redis-server --appendonly yes --requirepass ${REDIS_PASSWORD}"
hostname: redis
restart: always
volumes:
- redis-data:/data
networks:
default:
name: italent-network
volumes:
postgres-data:
name: italent-postgres-data
redis-data:
name: italent-redis-data
backend-data:
name: italent-backend-data
frontend-data:
name: italent-frontend-data