-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdocker-compose.dev.yml
42 lines (40 loc) · 995 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
services:
# Create React App (CRA) running on development mode
client-dev:
container_name: client-dev
image: ciatphdev/firebase-users-admin:client
env_file:
- ./client/.env
build:
context: ./client
dockerfile: Dockerfile
target: development
networks:
- firebase-users-dev
volumes:
- ./client/public:/opt/client/public
- ./client/src:/opt/client/src
ports:
- "3000:3000"
# Express app running in development mode with auto reload using nodemon
server-dev:
container_name: server-dev
image: ciatphdev/firebase-users-admin:server
env_file:
- ./server/.env
build:
context: ./server
dockerfile: Dockerfile
target: development
networks:
- firebase-users-dev
volumes:
- ./server:/opt/server
- /opt/server/node_modules
ports:
- "3001:3001"
- "9229:9229"
networks:
firebase-users-dev:
name: firebase-users-dev
external: false