start migrating compose.yml to the 'abra way'
- Rename service to app - Remove build: stanza - Convert non Named Volumes to configs -
This commit is contained in:
28
compose.yml
28
compose.yml
@ -4,28 +4,36 @@ volumes:
|
||||
html:
|
||||
|
||||
services:
|
||||
nginx:
|
||||
app:
|
||||
image: nginx:1.25.3-alpine
|
||||
container_name: offline-nginx
|
||||
restart: always
|
||||
configs:
|
||||
- source: nginx_conf
|
||||
target: /etc/nginx/conf.d/default.conf
|
||||
volumes:
|
||||
- html:/usr/share/nginx/website
|
||||
- ./nginx.conf:/etc/nginx/conf.d/default.conf
|
||||
ports:
|
||||
- 9090:80
|
||||
|
||||
builder:
|
||||
build: .
|
||||
container_name: offline-builder
|
||||
depends_on:
|
||||
- nginx
|
||||
restart: always
|
||||
image: codeberg.org/eotl/site-badger:0.1.0
|
||||
configs:
|
||||
source: webhookd_script
|
||||
target: /home/webhookd/scripts/deploy.sh
|
||||
volumes:
|
||||
- html:/home/webhookd/public
|
||||
- ./scripts:/home/webhookd/scripts
|
||||
- ${SSH_DIR_PATH}:/home/webhookd/.ssh:ro
|
||||
environment:
|
||||
- HUGO_GIT_URL=git@codeberg.org:offline/future.git
|
||||
- WHD_SCRIPTS=/home/webhookd/scripts
|
||||
ports:
|
||||
- 8080:8080
|
||||
|
||||
configs:
|
||||
webhookd_script:
|
||||
name: ${STACK_NAME}_webhookd_script_${WEBHOOKD_SCRIPT_VERSION}
|
||||
file: deploy.sh.tmpl
|
||||
template_driver: golang
|
||||
nginx_conf:
|
||||
name: ${STACK_NAME}_nginx_conf_${NGINX_CONF_VERSION}
|
||||
file: nginx.conf.tmpl
|
||||
template_driver: golang
|
||||
|
Reference in New Issue
Block a user