-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
59 lines (59 loc) · 1.05 KB
/
docker-compose.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
53
54
55
56
57
58
59
version: '3'
services:
redis:
image: 'redis:latest'
restart: always
ports:
- '6380:6379'
mongodb:
image: mongo:4.0
ports:
- '27016:27017'
restart: always
volumes:
- mongo-data:/data/db
nginx:
restart: always
build:
dockerfile: Dockerfile.dev
context: ./nginx
ports:
- '3050:80'
depends_on:
- client
- api
client:
build:
dockerfile: Dockerfile.dev
context: ./client
volumes:
- /app/node_modules
- ./client:/app
ports:
- '3000:5000'
api:
depends_on:
- mongodb
- redis
build:
dockerfile: Dockerfile.dev
context: ./server
volumes:
- /app/node_modules
- ./server:/app
ports:
- '9000:5000'
environment:
- APP_HOST=149.28.175.97
- APP_PORT=3050
- API_PORT=9000
- MONGO_HOST=mongodb
- MONGO_PORT=27017
- MONGO_DB=Docker-test
- REDIS_HOST=redis
- REDIS_PORT=6379
#networks:
# my-network:
# driver: bridge
volumes:
mongo-data: