generated from timmyichen/nuxt-express-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
49 lines (49 loc) · 1.22 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
version: '3'
services:
app:
image: node:10-alpine
command: 'npm run dev'
volumes:
- .:/usr/helpahacker/
working_dir: /usr/helpahacker/
ports:
- '8000:8000'
- '8888:8888'
environment:
- MONGO_URI=mongodb://mongo0:27017,mongo1:27017,mongo2:27017/helpahacker?replicaSet=rs0
- MONGO_URI_TEST=mongodb://mongo0:27017,mongo1:27017,mongo2:27017/testingdb?replicaSet=rs0
- SESSION_SECRET=asefiuhaof3aiuhsedf
depends_on:
- mongo0
- mongo1
- mongo2
mongo0:
hostname: mongo0
container_name: localmongo0
image: mongo:4.0-xenial
expose:
- 27017
restart: always
entrypoint: ['/usr/bin/mongod', '--bind_ip_all', '--replSet', 'rs0']
logging:
driver: none
mongo1:
hostname: mongo1
container_name: localmongo1
image: mongo:4.0-xenial
expose:
- 27017
restart: always
entrypoint: ['/usr/bin/mongod', '--bind_ip_all', '--replSet', 'rs0']
logging:
driver: none
mongo2:
hostname: mongo2
container_name: localmongo2
image: mongo:4.0-xenial
expose:
- 27017
restart: always
entrypoint: ['/usr/bin/mongod', '--bind_ip_all', '--replSet', 'rs0']
logging:
driver: none