Config volume on all containers

This commit is contained in:
Juan 2018-06-12 13:45:20 +02:00
parent 1eb218cbab
commit e053515997
2 changed files with 3 additions and 3 deletions

View File

@ -169,7 +169,6 @@ gulp.task('docker-compose', async () => {
dockerFile = localDockerFile;
composeYml.services[service.name] = {
volumes: ['/config:/config'],
build: {
context: `./services`,
dockerfile: dockerFile
@ -193,7 +192,8 @@ gulp.task('docker-compose', async () => {
let service = composeYml.services[serviceName];
Object.assign(service, {
container_name: `${namePrefix}${serviceName}`,
image: `${serviceName}:${imageTag}`
image: `${serviceName}:${imageTag}`,
volumes: ['/config:/config']
});
service.build.labels = {
'salix.tag': imageTag

View File

@ -1,4 +1,4 @@
FROM node:8.9.4
FROM node:8-slim
COPY . /loopback
RUN npm -g install pm2