Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support build option for docker compose #1717

Merged
merged 1 commit into from
Aug 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
75 changes: 41 additions & 34 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
networks:
internal_network:
internal: true
external_network:
driver: bridge

services:
# CB-Tumblebug
cb-tumblebug:
image: cloudbaristaorg/cb-tumblebug:0.9.4
container_name: cb-tumblebug
pull_policy: missing
build:
context: .
dockerfile: Dockerfile
container_name: cb-tumblebug
platform: linux/amd64
networks:
- internal_network
Expand Down Expand Up @@ -102,37 +108,13 @@ services:
retries: 3
start_period: 10s

# # cb-tumblebug-etcd-conf
# cb-tumblebug-etcd-conf:
# image: alpine:latest
# container_name: cb-tumblebug-etcd-conf
# networks:
# - internal_network
# - external_network
# depends_on:
# - cb-tumblebug-etcd
# volumes:
# - ./scripts/etcd/:/scripts/etcd/
# environment:
# - ETCD_VERSION_TAG=v3.5.14
# - ETCD_ENDPOINTS=http://cb-tumblebug-etcd:2379
# - ETCD_PATH=/tmp/etcd-download-test
# - ETCD_AUTH_ENABLED=true
# - ETCD_ROOT_PASSWORD=default
# - ETCD_ADMIN_USERNAME=default
# - ETCD_ADMIN_PASSWORD=default
# command: sh -c "sh /scripts/etcd/etcd-conf.sh"
# healthcheck: # for etcd-conf
# test: ["CMD", "test", "-f", "/tmp/healthcheck"]
# interval: 30s
# timeout: 10s
# retries: 3
# start_period: 10s

# CB-Spider
cb-spider:
image: cloudbaristaorg/cb-spider:0.9.0
container_name: cb-spider
# build:
# context: ../cb-spider
# dockerfile: Dockerfile
platform: linux/amd64
networks:
- internal_network
Expand Down Expand Up @@ -162,8 +144,11 @@ services:

# cb-mapui
cb-mapui:
image: cloudbaristaorg/cb-mapui:0.9.0
image: cloudbaristaorg/cb-mapui:0.9.1
container_name: cb-mapui
# build:
# context: ../cb-mapui
# dockerfile: Dockerfile
networks:
- external_network
ports:
Expand All @@ -177,8 +162,30 @@ services:
retries: 3
start_period: 10s

networks:
internal_network:
internal: true
external_network:
driver: bridge
# # cb-tumblebug-etcd-conf
# cb-tumblebug-etcd-conf:
# image: alpine:latest
# container_name: cb-tumblebug-etcd-conf
# networks:
# - internal_network
# - external_network
# depends_on:
# - cb-tumblebug-etcd
# volumes:
# - ./scripts/etcd/:/scripts/etcd/
# environment:
# - ETCD_VERSION_TAG=v3.5.14
# - ETCD_ENDPOINTS=http://cb-tumblebug-etcd:2379
# - ETCD_PATH=/tmp/etcd-download-test
# - ETCD_AUTH_ENABLED=true
# - ETCD_ROOT_PASSWORD=default
# - ETCD_ADMIN_USERNAME=default
# - ETCD_ADMIN_PASSWORD=default
# command: sh -c "sh /scripts/etcd/etcd-conf.sh"
# healthcheck: # for etcd-conf
# test: ["CMD", "test", "-f", "/tmp/healthcheck"]
# interval: 30s
# timeout: 10s
# retries: 3
# start_period: 10s