-
-
Notifications
You must be signed in to change notification settings - Fork 29
/
.docker-compose.yml
62 lines (58 loc) · 1.27 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
# You should configure the passwords/username's where expected
services:
web:
build: .
ports:
- "127.0.0.1:3000:3000" # Expected to be proxied via something like Nginx
restart: always
shm_size: 1024mb # Set 1gb default memory alloc. 1gb should be more than enough
depends_on:
- redis
- mongo
networks:
- mongo
- redis
- public
mongo:
image: mongo
restart: always
env_file: .env.production
networks:
- mongo
volumes:
- ./data/mongo:/data/db
healthcheck:
test: ["CMD", "echo 'db.runCommand(\"ping\").ok' | mongo mongo:27017/test --quiet"]
interval: 10s
timeout: 10s
retries: 5
start_period: 40s
mongo-express:
image: mongo-express
restart: always
env_file: .env.production
ports:
- "127.0.0.1:8081:8081" # Expected to be proxied by something like Nginx
networks:
- mongo
depends_on:
- mongo
redis:
restart: always
image: redis:7-alpine
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 10s
retries: 5
start_period: 40s
volumes:
- ./data/redis:/data
networks:
- redis
networks:
mongo:
internal: true
redis:
internal: true
public: