|
@ -1,7 +1,9 @@ |
|
|
version: '3' |
|
|
version: '3' |
|
|
services: |
|
|
services: |
|
|
meteorvue: |
|
|
meteorvue: |
|
|
image: nelson/meteor-vue:latest |
|
|
image: nelson/meteor:latest |
|
|
|
|
|
networks: |
|
|
|
|
|
- 'meteor' |
|
|
command: > |
|
|
command: > |
|
|
bash -c |
|
|
bash -c |
|
|
"for i in `seq 1 30`; do |
|
|
"for i in `seq 1 30`; do |
|
@ -16,7 +18,7 @@ services: |
|
|
environment: |
|
|
environment: |
|
|
- PORT=3000 |
|
|
- PORT=3000 |
|
|
- ROOT_URL=http://localhost:3000 |
|
|
- ROOT_URL=http://localhost:3000 |
|
|
- MONGO_URL=mongodb://mongo:27017/rocketchat |
|
|
- MONGO_URL=mongodb://mongo:27017/meteor |
|
|
- MONGO_OPLOG_URL=mongodb://mongo:27017/local |
|
|
- MONGO_OPLOG_URL=mongodb://mongo:27017/local |
|
|
- MAIL_URL=smtp://smtp.email |
|
|
- MAIL_URL=smtp://smtp.email |
|
|
depends_on: |
|
|
depends_on: |
|
@ -28,15 +30,21 @@ services: |
|
|
- "traefik.frontend.rule=Host: your.domain.tld" |
|
|
- "traefik.frontend.rule=Host: your.domain.tld" |
|
|
mongo: |
|
|
mongo: |
|
|
image: mongo:4.0 |
|
|
image: mongo:4.0 |
|
|
|
|
|
networks: |
|
|
|
|
|
- 'meteor' |
|
|
restart: unless-stopped |
|
|
restart: unless-stopped |
|
|
volumes: |
|
|
volumes: |
|
|
- ./data/db:/data/db |
|
|
- ./data/db:/data/db |
|
|
#- ./data/dump:/dump |
|
|
#- ./data/dump:/dump |
|
|
command: mongod --smallfiles --oplogSize 128 --replSet rs0 --storageEngine=mmapv1 |
|
|
command: mongod --smallfiles --oplogSize 128 --replSet rs0 --storageEngine=mmapv1 |
|
|
|
|
|
ports: |
|
|
|
|
|
- 27017:27017 |
|
|
labels: |
|
|
labels: |
|
|
- "traefik.enable=false" |
|
|
- "traefik.enable=false" |
|
|
mongo-init-replica: |
|
|
mongo-init-replica: |
|
|
image: mongo:4.0 |
|
|
image: mongo:4.0 |
|
|
|
|
|
networks: |
|
|
|
|
|
- 'meteor' |
|
|
command: > |
|
|
command: > |
|
|
bash -c |
|
|
bash -c |
|
|
"for i in `seq 1 30`; do |
|
|
"for i in `seq 1 30`; do |
|
@ -50,3 +58,6 @@ services: |
|
|
done; (exit $$s)" |
|
|
done; (exit $$s)" |
|
|
depends_on: |
|
|
depends_on: |
|
|
- mongo |
|
|
- mongo |
|
|
|
|
|
networks: |
|
|
|
|
|
meteor: |
|
|
|
|
|
driver: bridge |