-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
48 lines (48 loc) · 1.13 KB
/
docker-compose.yaml
File metadata and controls
48 lines (48 loc) · 1.13 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
name: URL_Shortner_FullStack
services:
nextjs:
container_name: nextjs_dev
build:
context: ./FrontEnd
dockerfile: Dockerfile
ports:
- "3001:3000"
volumes:
- ./FrontEnd:/app
- /app/node_modules
- /app/.next
env_file:
- ./FrontEnd/.env.local
environment:
- NODE_ENV=development
- WATCHPACK_POLLING=true
- CHOKIDAR_USEPOLLING=true
- WATCHPACK_POLLING_INTERVAL=1000
restart: always
command: npm run dev
postgres_db:
image: postgres:15
container_name: postgres_db_url_shortener
restart: always
environment:
POSTGRES_USER: user
POSTGRES_PASSWORD: password
POSTGRES_DB: url_shortener
ports:
- "5432:5432"
# volumes:
# - postgres_for_url_shortener:/var/lib/postgresql/data
express_app:
container_name: backend_server_url_shortener
build: ./BackEnd/.
ports:
- "3000:3000"
env_file:
- ./BackEnd/.env
restart: always
volumes:
- ./BackEnd/src:/app/src
- ./BackEnd/package.json:/app/package.json
- /app/node_modules
environment:
- NODE_ENV=development