-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.dev.yml
52 lines (48 loc) · 911 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
46
47
48
49
50
51
52
version: "3"
services:
redis:
image: redis:7.0-alpine
container_name: redis
ports:
- "6379:6379"
volumes:
- ./.docker/data:/data
networks:
- app-network
restart: always
client:
container_name: onelink-client
build:
context: ./client
dockerfile: Dockerfile.dev
env_file:
- ./client/.env.dev
ports:
- "3001:3001"
volumes:
- ./client:/frontend/client
- /client/node_modules
networks:
- app-network
restart: always
api:
container_name: onelink-api
build:
context: ./api
dockerfile: Dockerfile.dev
env_file:
- ./api/.env.dev
ports:
- "8081:8081"
environment:
- DB_ADDR=redis:6379
depends_on:
- redis
networks:
- app-network
volumes:
- ./api:/app/api
restart: always
networks:
app-network:
driver: bridge