forked from operasoftware/ssh-key-authority
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml.example
More file actions
40 lines (40 loc) · 1.07 KB
/
docker-compose.yml.example
File metadata and controls
40 lines (40 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
services:
ska-app:
build: .
image: msprg/ssh-key-authority
container_name: ska-app
restart: unless-stopped
depends_on:
ska-db:
condition: service_healthy
ports:
- "80:8080"
volumes:
- ./data/ska/config/:/srv/keys/config/:ro
- ./data/ska/logs:/var/log/ska
- ./data/ska/var/local/sync:/var/local/keys-sync
environment:
TZ: UTC
healthcheck:
test: ["CMD", "curl", "-fsS", "http://localhost:8080/"]
interval: 30s
timeout: 5s
retries: 3
start_period: 30s
ska-db:
image: mariadb:11.8.5
container_name: ska-db
restart: unless-stopped
environment:
MARIADB_ROOT_PASSWORD: #replace me with strong password
MARIADB_DATABASE: ska-db
MARIADB_USER: ska-user
MARIADB_PASSWORD: #replace me with strong password
volumes:
- ./data/ska/db-data:/var/lib/mysql
healthcheck:
test: ["CMD-SHELL", "mariadb-admin ping -h localhost -u$$MARIADB_USER -p$$MARIADB_PASSWORD"]
interval: 10s
timeout: 5s
retries: 5
start_period: 20s