Split docker-compose and build-docker-compose

pull/1/head
Jason Kendall 2020-02-27 19:50:42 -05:00
parent 0d99035e4a
commit 13df7b4fea
3 changed files with 18 additions and 10 deletions

View File

@ -10,4 +10,5 @@ before_install:
- sudo mv docker-compose /usr/local/bin - sudo mv docker-compose /usr/local/bin
script: script:
- docker-compose build - docker-compose -f docker-compose.yml -f build-docker-compose.yml build

16
build-docker-compose.yml Normal file
View File

@ -0,0 +1,16 @@
version: '3'
services:
misp:
image: coolacid/misp-docker:core-latest
build:
context: server/.
args:
- MISP_TAG=${MISP_TAG}
- PHP_VER=${PHP_VER}
misp-modules:
image: coolacid/misp-docker:modules-latest
build:
context: modules/.
args:
- MODULES_TAG=${MODULES_TAG}

View File

@ -20,11 +20,6 @@ services:
misp: misp:
image: coolacid/misp-docker:core-latest image: coolacid/misp-docker:core-latest
build:
context: server/.
args:
- MISP_TAG=${MISP_TAG}
- PHP_VER=${PHP_VER}
depends_on: depends_on:
- redis - redis
- db - db
@ -46,10 +41,6 @@ services:
misp-modules: misp-modules:
image: coolacid/misp-docker:modules-latest image: coolacid/misp-docker:modules-latest
build:
context: modules/.
args:
- MODULES_TAG=${MODULES_TAG}
environment: environment:
- "REDIS_BACKEND=redis" - "REDIS_BACKEND=redis"
depends_on: depends_on: