Config volume on all containers
This commit is contained in:
parent
1eb218cbab
commit
e053515997
|
@ -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
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
FROM node:8.9.4
|
||||
FROM node:8-slim
|
||||
|
||||
COPY . /loopback
|
||||
RUN npm -g install pm2
|
||||
|
|
Loading…
Reference in New Issue