mirror of
https://github.com/wazuh/wazuh-docker.git
synced 2025-11-04 22:13:31 +00:00
WIP CI: testing docker-compose build
This commit is contained in:
20
.github/workflows/push.yml
vendored
20
.github/workflows/push.yml
vendored
@@ -1,18 +1,14 @@
|
|||||||
name: Docker Image CI
|
name: Wazuh Docker pipeline
|
||||||
|
|
||||||
on:
|
on: [push]
|
||||||
push:
|
|
||||||
branches: [ feature-github-actions ]
|
|
||||||
pull_request:
|
|
||||||
branches: [ feature-github-actions ]
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
build:
|
build:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- name: Check out code
|
||||||
- name: Build the Docker image
|
uses: actions/checkout@v2
|
||||||
run: docker build wazuh --tag wazuh:$(date +%s)
|
- name: Build the docker-compose stack
|
||||||
|
run: docker-compose -f docker-compose.yml
|
||||||
|
- name: Check running containers
|
||||||
|
run: docker ps -a
|
||||||
@@ -3,7 +3,7 @@ version: '2'
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
wazuh:
|
wazuh:
|
||||||
image: wazuh/wazuh:3.13.1_7.8.0
|
build: wazuh
|
||||||
hostname: wazuh-manager
|
hostname: wazuh-manager
|
||||||
restart: always
|
restart: always
|
||||||
ports:
|
ports:
|
||||||
@@ -13,7 +13,7 @@ services:
|
|||||||
- "55000:55000"
|
- "55000:55000"
|
||||||
|
|
||||||
elasticsearch:
|
elasticsearch:
|
||||||
image: wazuh/wazuh-elasticsearch:3.13.1_7.8.0
|
build: elasticsearch
|
||||||
hostname: elasticsearch
|
hostname: elasticsearch
|
||||||
restart: always
|
restart: always
|
||||||
ports:
|
ports:
|
||||||
@@ -30,7 +30,7 @@ services:
|
|||||||
mem_limit: 2g
|
mem_limit: 2g
|
||||||
|
|
||||||
kibana:
|
kibana:
|
||||||
image: wazuh/wazuh-kibana:3.13.1_7.8.0
|
build: kibana
|
||||||
hostname: kibana
|
hostname: kibana
|
||||||
restart: always
|
restart: always
|
||||||
depends_on:
|
depends_on:
|
||||||
@@ -40,7 +40,7 @@ services:
|
|||||||
- wazuh:wazuh
|
- wazuh:wazuh
|
||||||
|
|
||||||
nginx:
|
nginx:
|
||||||
image: wazuh/wazuh-nginx:3.13.1_7.8.0
|
build: nginx
|
||||||
hostname: nginx
|
hostname: nginx
|
||||||
restart: always
|
restart: always
|
||||||
environment:
|
environment:
|
||||||
|
|||||||
Reference in New Issue
Block a user