-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
36 lines (35 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
# Comments are provided throughout this file to help you get started.
# If you need more help, visit the Docker Compose reference guide at
# https://docs.docker.com/go/compose-spec-reference/
# Here the instructions define your application as a service called "app".
# This service is built from the Dockerfile in the current directory.
# You can add other services your application may depend on here, such as a
# database or a cache. For examples, see the Awesome Compose repository:
# https://github.com/docker/awesome-compose
services:
db:
image: postgres:16-alpine
environment:
POSTGRES_PASSWORD: password
POSTGRES_USER: postgres
POSTGRES_DB: hp
ports:
- "5432:5432"
app:
build:
context: .
user: root
image: nextjs-dev
ports:
- "3000:3000"
environment:
- NODE_ENV=development
develop:
watch:
- action: sync
path: ./src
target: app/src
ignore:
- node_modules/
- action: rebuild
path: package.json