mirror of
https://github.com/outbackdingo/labca.git
synced 2026-01-27 18:19:33 +00:00
146 lines
4.6 KiB
Diff
146 lines
4.6 KiB
Diff
diff --git a/docker-compose.yml b/docker-compose.yml
|
|
index 7efd16c4c..5f3d31f77 100644
|
|
--- a/docker-compose.yml
|
|
+++ b/docker-compose.yml
|
|
@@ -4,7 +4,7 @@ services:
|
|
# The `letsencrypt/boulder-tools:latest` tag is automatically built in local
|
|
# dev environments. In CI a specific BOULDER_TOOLS_TAG is passed, and it is
|
|
# pulled with `docker compose pull`.
|
|
- image: &boulder_image letsencrypt/boulder-tools:${BOULDER_TOOLS_TAG:-latest}
|
|
+ image: ghcr.io/hakwerk/labca-boulder:${LABCA_IMAGE_VERSION:-latest}
|
|
build:
|
|
context: test/boulder-tools/
|
|
# Should match one of the GO_CI_VERSIONS in test/boulder-tools/tag_and_upload.sh.
|
|
@@ -21,12 +21,10 @@ services:
|
|
# Forward the parent env's GOEXPERIMENT value into the container.
|
|
GOEXPERIMENT: ${GOEXPERIMENT:-}
|
|
volumes:
|
|
- - .:/opt/boulder:cached
|
|
- - /home/labca/boulder_labca:/opt/boulder/labca
|
|
- - /home/labca/nginx_data/static:/opt/wwwstatic
|
|
- - ./.gocache:/root/.cache/go-build:cached
|
|
- - ./.hierarchy:/hierarchy/:cached
|
|
- - ./.softhsm-tokens/:/var/lib/softhsm/tokens/:cached
|
|
+ - boulder_data:/opt/boulder/labca
|
|
+ - nginx_html:/opt/wwwstatic
|
|
+ - softhsm:/var/lib/softhsm/tokens:cached
|
|
+ - certificates:/hierarchy
|
|
networks:
|
|
bouldernet:
|
|
ipv4_address: 10.77.77.77
|
|
@@ -50,6 +48,7 @@ services:
|
|
depends_on:
|
|
- bmysql
|
|
- bconsul
|
|
+ - control
|
|
entrypoint: labca/entrypoint.sh
|
|
working_dir: &boulder_working_dir /opt/boulder
|
|
logging:
|
|
@@ -84,34 +83,37 @@ services:
|
|
|
|
bconsul:
|
|
image: hashicorp/consul:1.15.4
|
|
+ depends_on:
|
|
+ - control
|
|
volumes:
|
|
- - ./test/:/test/:cached
|
|
+ - boulder_data:/opt/boulder/labca
|
|
networks:
|
|
consulnet:
|
|
ipv4_address: 10.55.55.10
|
|
bouldernet:
|
|
ipv4_address: 10.77.77.10
|
|
- command: "consul agent -dev -config-format=hcl -config-file=/test/consul/config.hcl"
|
|
+ command: "consul agent -dev -config-format=hcl -config-file=/opt/boulder/labca/consul/config.hcl"
|
|
+ working_dir: /opt/boulder
|
|
restart: always
|
|
|
|
gui:
|
|
- image: *boulder_image
|
|
+ image: ghcr.io/hakwerk/labca-gui:${LABCA_IMAGE_VERSION:-latest}
|
|
networks:
|
|
- bouldernet
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
- - /home/labca/admin:/go/src/labca
|
|
- - ./.gocache:/root/.cache/go-build
|
|
- - /home/labca/nginx_data/static:/opt/wwwstatic
|
|
- - /home/labca/backup:/opt/backup
|
|
- - .:/opt/boulder
|
|
- - /home/labca/boulder_labca:/opt/boulder/labca
|
|
+ - ./docker-compose.yml:/opt/boulder/docker-compose.yml
|
|
+ - ldata:/opt/labca/data
|
|
+ - nginx_html:/opt/wwwstatic
|
|
+ - backup:/opt/backup
|
|
+ - boulder_data:/opt/boulder/labca
|
|
expose:
|
|
- 3000
|
|
depends_on:
|
|
- bmysql
|
|
- working_dir: /go/src/labca
|
|
- command: ./setup.sh
|
|
+ - control
|
|
+ working_dir: /opt/labca
|
|
+ command: bin/labca-gui
|
|
logging:
|
|
driver: "json-file"
|
|
options:
|
|
@@ -128,27 +130,26 @@ services:
|
|
- 80:80
|
|
- 443:443
|
|
volumes:
|
|
- - /home/labca/nginx_data/conf.d:/etc/nginx/conf.d
|
|
- - /home/labca/nginx_data/ssl:/etc/nginx/ssl
|
|
- - /home/labca/nginx_data/static:/var/www/html
|
|
+ - nginx_conf:/etc/nginx/conf.d
|
|
+ - nginx_ssl:/etc/nginx/ssl
|
|
+ - nginx_html:/var/www/html
|
|
+ depends_on:
|
|
+ - control
|
|
|
|
control:
|
|
- image: *boulder_image
|
|
+ image: ghcr.io/hakwerk/labca-control:${LABCA_IMAGE_VERSION:-latest}
|
|
networks:
|
|
- bouldernet
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
- - /home/labca/admin/data:/opt/labca/data
|
|
- - /home/labca/admin/data:/opt/labca/gui/data
|
|
- - /home/labca/admin/bin:/opt/labca/bin
|
|
- - /home/labca/labca:/opt/labca
|
|
- - /home/labca/backup:/opt/backup
|
|
- - /home/labca/control_logs:/opt/logs
|
|
- - .:/opt/boulder
|
|
- - /home/labca/boulder_labca:/opt/boulder/labca
|
|
- - /home/labca/nginx_data/conf.d:/etc/nginx/conf.d
|
|
- - /home/labca/nginx_data/ssl:/etc/nginx/ssl
|
|
- - /home/labca/nginx_data/static:/var/www/html
|
|
+ - ./docker-compose.yml:/opt/boulder/docker-compose.yml
|
|
+ - ldata:/opt/labca/data
|
|
+ - backup:/opt/backup
|
|
+ - logs:/opt/logs
|
|
+ - boulder_data:/opt/boulder/labca
|
|
+ - nginx_conf:/etc/nginx/conf.d
|
|
+ - nginx_ssl:/etc/nginx/ssl
|
|
+ - nginx_html:/var/www/html
|
|
expose:
|
|
- 3030
|
|
environment:
|
|
@@ -159,6 +160,15 @@ services:
|
|
|
|
volumes:
|
|
dbdata:
|
|
+ nginx_conf:
|
|
+ nginx_ssl:
|
|
+ nginx_html:
|
|
+ boulder_data:
|
|
+ ldata:
|
|
+ backup:
|
|
+ logs:
|
|
+ softhsm:
|
|
+ certificates:
|
|
|
|
networks:
|
|
# This network is primarily used for boulder services. It is also used by
|