-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (46 loc) · 1.02 KB
/
docker-compose.yml
File metadata and controls
49 lines (46 loc) · 1.02 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
services:
app:
container_name: script-assist-app
build:
context: .
dockerfile: Dockerfile
command: bun run start:dev
ports:
- '3000:3000'
volumes:
- .:/usr/src/app
- /usr/src/app/node_modules
environment:
- DB_HOST=${DB_HOST}
- DB_PORT=${DB_PORT}
- DB_USERNAME=${DB_USERNAME}
- DB_PASSWORD=${DB_PASSWORD}
- DB_DATABASE=${DB_DATABASE}
- JWT_SECRET=${JWT_SECRET}
- JWT_EXPIRATION=${JWT_EXPIRATION}
- REDIS_HOST=${REDIS_HOST}
- REDIS_PORT=${REDIS_PORT}
- PORT=${PORT}
- NODE_ENV=${NODE_ENV}
depends_on:
- postgres
- redis
postgres:
image: postgres:15
container_name: postgres
restart: always
ports:
- '5432:5432'
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: taskflow
volumes:
- pgdata:/var/lib/postgresql/data
redis:
image: redis:7
container_name: redis
ports:
- '6379:6379'
volumes:
pgdata: