Create ksd-swarm.yml
This commit is contained in:
committed by
GitHub
parent
1af5db5a36
commit
3719b80ffe
@@ -0,0 +1,48 @@
|
||||
version: '3.2'
|
||||
services:
|
||||
opencart:
|
||||
image: ameseguer/opencart
|
||||
environment:
|
||||
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
|
||||
MYSQL_ROOT_PASSWORD: "rootpwd"
|
||||
networks:
|
||||
- dmz
|
||||
deploy:
|
||||
mode: replicated
|
||||
replicas: 1
|
||||
update_config:
|
||||
parallelism: 1
|
||||
delay: 10s
|
||||
restart_policy:
|
||||
condition: on-failure
|
||||
labels:
|
||||
- "traefik.docker.network=dmz"
|
||||
- "traefik.port=80"
|
||||
- "traefik.enable=true"
|
||||
- "traefik.frontend.entryPoints=http,https"
|
||||
- "traefik.frontend.rule=Host:user${PREFIX}exam.akaorigin.com,user${PREFIX}exam.my-juiceshop.com"
|
||||
|
||||
|
||||
juiceshop:
|
||||
image: bkimminich/juice-shop:latest
|
||||
networks:
|
||||
- dmz
|
||||
deploy:
|
||||
mode: replicated
|
||||
replicas: 1
|
||||
update_config:
|
||||
parallelism: 1
|
||||
delay: 10s
|
||||
restart_policy:
|
||||
condition: on-failure
|
||||
labels:
|
||||
- "traefik.docker.network=dmz"
|
||||
- "traefik.port=3000"
|
||||
- "traefik.enable=true"
|
||||
- "traefik.frontend.entryPoints=http,https,http-filtered,https-filtered"
|
||||
- "traefik.frontend.rule=Host:user${PREFIX}.akaorigin.com,juiceshop${PREFIX}.my-juiceshop.com"
|
||||
|
||||
|
||||
networks:
|
||||
dmz:
|
||||
external: true
|
||||
Reference in New Issue
Block a user