-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
69 lines (64 loc) · 1.15 KB
/
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
version: "2.1"
services:
api:
build: ./api/
container_name: jamia_api
restart: always
mem_limit: 1GB
networks:
- docker_net
ports:
- "5000:5000"
links:
- mongodb
depends_on:
- mongodb
environment:
- API_PORT=5000
- MONGODB_USER
- MONGODB_PASS
website:
build: ./www/
container_name: jamia_website
restart: always
mem_limit: 1GB
networks:
- docker_net
ports:
- "80:80"
volumes:
- ./www/dist:/usr/share/nginx/html
mongodb:
image: mongo
container_name: mongodb
restart: always
mem_limit: 2GB
networks:
- docker_net
environment:
- MONGODB_USER
- MONGODB_PASS
redisstore:
image: redis
container_name: redisstore
restart: always
mem_limit: 2GB
networks:
- docker_net
mongodbadmin:
image: mongo-express
container_name: mongodbadmin
restart: always
cpu_shares: 10
mem_limit: 524288000
ports:
- "8081:8081"
networks:
- docker_net
links:
- mongodb:mongo
depends_on:
- mongodb
networks:
docker_net:
driver: bridge