-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.dev.yaml
More file actions
85 lines (80 loc) · 1.73 KB
/
docker-compose.dev.yaml
File metadata and controls
85 lines (80 loc) · 1.73 KB
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
services:
backend:
image: banditantony9/ihub-server:latest
pull_policy: always
env_file:
- path: ./backend/.env
required: true
expose:
- 3000
ports:
- "3000"
deploy:
mode: Replicated
replicas: 2
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
environment:
mongoDbUrl: mongodb://${MONGODB_USER}:${MONGODB_PASSWORD}@mongodb:27017
mongoDbName: ihub
NODE_ENV: production
depends_on:
- mongodb
networks:
- ihub
stdin_open: true
tty: true
frontend:
image: banditantony9/ihub-client:latest
pull_policy: always
container_name: ihub-frontend
restart: always
ports:
- "80:80"
- "443:443"
networks:
- ihub
depends_on:
- backend
stdin_open: true
tty: true
mongodb:
restart: always
image: mongo:4.4.18
container_name: mongo-cont
ports:
- "27017:27017"
environment:
MONGO_INITDB_ROOT_USERNAME: ${MONGODB_USER}
MONGO_INITDB_ROOT_PASSWORD: ${MONGODB_PASSWORD}
networks:
- ihub
volumes:
- ihub-data:/data/db
stdin_open: true
tty: true
mongo-express:
restart: always
image: mongo-express
container_name: express-cont
ports:
- "8081:8081"
networks:
- ihub
environment:
ME_CONFIG_MONGODB_ADMINUSERNAME: ${MONGODB_USER}
ME_CONFIG_MONGODB_ADMINPASSWORD: ${MONGODB_PASSWORD}
ME_CONFIG_MONGODB_PORT: 27017
ME_CONFIG_MONGODB_URL: mongodb://${MONGODB_USER}:${MONGODB_PASSWORD}@mongodb:27017/
depends_on:
- mongodb
stdin_open: true
tty: true
volumes:
ihub-data:
driver: local
networks:
ihub:
external: true