-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcompose.yaml
50 lines (48 loc) · 1.03 KB
/
compose.yaml
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:
web:
container_name: ai-saas-web
depends_on:
- db
build:
context: .
dockerfile: Dockerfile
entrypoint: ['./entrypoint.sh']
env_file: .env
environment:
NODE_ENV: development
DB_HOST: db
DB_PORT: 5432
DB_USER: ${DB_USER}
ports:
- 80:3000
user: node
develop:
watch:
- path: ./package.json
action: rebuild
- path: ./package-lock.json
action: rebuild
- path: ./next.config.js
action: rebuild
- path: ./tailwind.config.ts
action: rebuild
- path: .
target: /usr/src/app
action: sync
db:
container_name: ai-saas-db
image: postgres
ports:
- 5432:5432
env_file: .env
environment:
- POSTGRES_USER=${DB_USER}
- POSTGRES_PASSWORD=${DB_PASSWORD}
- POSTGRES_DB=${DB_NAME}
volumes:
- ./data/db:/var/lib/postgresql/data
adminer:
container_name: ai-saas-adminer
image: adminer
ports:
- 8080:8080