-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-dev.yml
45 lines (45 loc) · 963 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
44
45
version: "3"
services:
api:
build:
dockerfile: docker-dev.dockerfile
context: ./api
container_name: api-email-sender
volumes:
- ./api:/home/api/
- /home/api/node_modules
env_file:
- ./api/.env
environment:
- NODE_ENV=development
- SOCKETIO_PORT=5001
ports:
- 5000:5000
- 5001:5001
command: npm run server
networks:
- email-sender-dev
client:
build:
dockerfile: docker-dev.dockerfile
context: ./client
container_name: client-email-sender
env_file:
- ./client/.env
environment:
- NODE_ENV=development
- CLIENT_PORT=8080
- API_HOST=api
- API_PORT=5000
- SOCKETIO_HOST=api
- SOCKETIO_PORT=5001
volumes:
- ./client:/home/client/
- /home/client/node_modules
ports:
- 8080:8080
command: npm run start:dev
networks:
- email-sender-dev
networks:
email-sender-dev: