-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
66 lines (58 loc) · 1.42 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
60
61
62
63
64
65
version: '3'
services:
sistema-nginx:
build: ./nginx
container_name: sistema-nginx
links:
- sistema-front-end:sistema-front-end
- sistema-back-end:sistema-back-end
ports:
- "8080:80"
sistema-front-end:
build: ./client
hostname: sistema-front-end
container_name: sistema-front-end
ports:
- "3001:3001"
environment:
- NODE_ENV=development
sistema-back-end:
build: ./server
hostname: sistema-back-end
container_name: sistema-back-end
ports:
- "3000:3000"
depends_on:
- sistema-mongo
- sistema-redis
links:
- sistema-mongo:sistema-mongo
- sistema-redis:sistema-redis
environment:
- NODE_ENV=development
- REDIS_HOST=sistema-redis
- REDIS_PASSWORD=admin@1234
- MONGODB_HOST=sistema-mongo
sistema-redis:
image: redis:alpine
hostname: sistema-redis
container_name: sistema-redis
volumes:
- ./docker/redis/data:/data
command: redis-server --requirepass admin@1234
sistema-mongo:
image: mongo
hostname: sistema-mongo
container_name: sistema-mongo
volumes:
- ./docker/mongo/data/db:/data/db
sistema-mongo-express:
image: mongo-express
hostname: sistema-mongo-express
container_name: sistema-mongo-express
ports:
- "27018:8081"
depends_on:
- sistema-mongo
links:
- sistema-mongo:mongo