-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
43 lines (41 loc) · 1003 Bytes
/
docker-compose.dev.yml
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
services:
# NextJS v13 app running on development mode
my-phonebook-client-dev:
container_name: my-phonebook-client-dev
image: weaponsforge/my-phonebook:client
env_file:
- ./client/.env
build:
context: ./client
dockerfile: Dockerfile
target: development
networks:
- my-phonebook-dev
volumes:
- ./client:/opt/client
- /opt/client/node_modules
- /opt/client/.next
ports:
- "3000:3000"
# Express server running in development mode
my-phonebook-server-dev:
container_name: my-phonebook-server-dev
image: weaponsforge/my-phonebook:server
env_file:
- ./server/.env
build:
context: ./server
dockerfile: ./Dockerfile
target: development
networks:
- my-phonebook-dev
volumes:
- ./server:/opt/server
- /opt/server/node_modules
ports:
- "3001:3001"
- "9229:9229"
networks:
my-phonebook-dev:
name: my-phonebook-dev
external: false