-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
50 lines (44 loc) · 1.19 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
50 lines (44 loc) · 1.19 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
services:
postgres:
image: postgres:15
container_name: postgres_db
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
POSTGRES_DB: resume_db
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
redis:
image: redis:7
container_name: redis_db
restart: always
ports:
- "6379:6379"
app:
build: .
container_name: resume_app
ports:
- "3000:3000"
depends_on:
- postgres
- redis
environment:
DATABASE_URL: postgresql://neondb_owner:npg_mwAZpHacB4t9@ep-dark-cell-aqp6645z-pooler.c-8.us-east-1.aws.neon.tech/neondb?sslmode=require&channel_binding=require
REDIS_URL: redis://redis:6379
command: sh -c "npm run build && npm run start"
worker:
build: .
container_name: resume_worker
depends_on:
- postgres
- redis
environment:
DATABASE_URL: postgresql://neondb_owner:npg_mwAZpHacB4t9@ep-dark-cell-aqp6645z-pooler.c-8.us-east-1.aws.neon.tech/neondb?sslmode=require&channel_binding=require
REDIS_URL: redis://redis:6379
command: npm run start:worker
restart: always
volumes:
postgres_data: