Browse Source

trying to start working on docker-compose automation step

master
forest 2 years ago
parent
commit
6e0a4f784d
  1. 17
      application-modules/hello-world/docker-compose.yml
  2. 33
      application-modules/servergarden-ingress/docker-compose.yml
  3. 12
      automation/dockerCompose.go

17
application-modules/hello-world/docker-compose.yml

@ -0,0 +1,17 @@
version: "3.3"
services:
nginx:
image: nginx
networks:
- servergarden-ingress
labels:
servergarden-ingress-0-public-port: 443
servergarden-ingress-0-public-protocol: https
servergarden-ingress-0-public-subdomain: ""
servergarden-ingress-0-container-protocol: http
servergarden-ingress-0-container-port: 80
networks:
servergarden-ingress:
external:
name: servergarden-ingress

33
application-modules/servergarden-ingress/docker-compose.yml

@ -0,0 +1,33 @@
version: "3.3"
services:
threshold:
image: sequentialread/threshold:0.0.1
command: ["-mode", "client", "-configFile", "/threshold/config/config.json"]
networks:
- servergarden-ingress
volumes:
- type: bind
source: $PWD/threshold
target: /threshold/config
- type: bind
source: /var/run/servergarden/threshold.sock
target: /threshold/threshold.sock
caddy:
image: caddy:2.2.0
command: ["caddy", "run", "-config", "/config/caddy-config.json"]
networks:
- servergarden-ingress
volumes:
- type: bind
source: $PWD/caddy
target: /config
- type: bind
source: /var/lib/servergarden/caddy/data
target: /data
- type: bind
source: /var/run/servergarden/caddy.sock
target: /caddy.sock
networks:
servergarden-ingress:
driver: bridge
name: servergarden-ingress

12
automation/dockerCompose.go

@ -0,0 +1,12 @@
package automation
import (
"git.sequentialread.com/forest/rootsystem/configuration"
)
func DockerComposeUp(
config *configuration.Configuration,
workingDirectory string,
) ([]byte, chan TerraformApplyResult, error) {
}
Loading…
Cancel
Save