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

Full docker-compose example #4

Closed
ansgarschulte opened this issue Mar 26, 2020 · 5 comments
Closed

Full docker-compose example #4

ansgarschulte opened this issue Mar 26, 2020 · 5 comments
Assignees

Comments

@ansgarschulte
Copy link

ansgarschulte commented Mar 26, 2020

Hi,

do you have a full docker compose example with your Docker Hub Image available?
Or is this sufficient?

version: "3"

services:
  ska-db:
    image: mariadb
    container_name: ska-db
    restart: always
    environment:
      - MYSQL_ROOT_PASSWORD=password
      - MYSQL_DATABASE=ska-db
      - MYSQL_USER=ska-user
      - MYSQL_PASSWORD=password
    volumes:
      - ./db:/var/lib/mysql:rw
    networks:
      - proxy
  ska:
    image: toendeavour/ssh-key-authority
    container_name: ska
    restart: always
    ports:
      - "8088:80"
    depends_on:
      - ska-db
    volumes:
      - ./config:/ska/config
    networks:
      - proxy


networks:
  proxy:
    external: true


@mettke
Copy link
Owner

mettke commented Mar 26, 2020

Hey there,
you can find a full example below the examples folder.

The only thing in there that you don't need is the test container which represents an example server to test key deployment.
Depending on your mail configuration the mail container might be unnecessary as well.

Other than that I would recommend to use two different networks for external (proxy) and internal (db and php) traffic, but that of course is only my preference.

@mettke mettke self-assigned this Mar 26, 2020
@mettke
Copy link
Owner

mettke commented Mar 26, 2020

Hint: You probably don't want to use latest. I will release v3 in a month or two (hopefully) which will be different and updating in place is not recommended. Instead feel free to use toendeavour/ssh-key-authority:v2

@ansgarschulte
Copy link
Author

Hi, thx. But your example don´t use your own Docker Image (toendeavour/ssh-key-authority:v2)
The examples expect to checkout your git repo.
I was searching for an example with toendeavour/ssh-key-authority:v2

@mettke
Copy link
Owner

mettke commented Mar 26, 2020

Well thats simple. Replace

build:
      context: ../../docker

with

image: toendeavour/ssh-key-authority:v2

and you are good to go. The image at hub,docker.com is the same as the one you would build from source

@ansgarschulte
Copy link
Author

Thx. These hints helped me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants