-
Notifications
You must be signed in to change notification settings - Fork 277
/
docker-compose.yml
42 lines (40 loc) · 1017 Bytes
/
docker-compose.yml
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
41
42
# To run the kippo service, run:
# docker-compose up
#
# The database service belongs to the "with-db" profile, so it's not run by
# default. To run the kippo service with the database service, run:
# docker-compose --profile with-db up
#
version: '3'
services:
kippo:
image: kippo
build:
context: .
dockerfile: ./Dockerfile
container_name: kippo
restart: unless-stopped
ports:
- "2222:2222"
# logs and configuration should be kept outside the image
volumes:
- ./log:/app/log
- ./dl:/app/dl
- ./data:/app/data
- ./kippo.cfg:/app/kippo.cfg
kippodb:
image: mariadb
container_name: kippodb
environment:
MYSQL_ROOT_PASSWORD: rootpw
MYSQL_DATABASE: kippo
MYSQL_USER: kippo
MYSQL_PASSWORD: kippopw
volumes:
- ./db/mysql/data:/var/lib/mysql
- ./db/mysql/docker-initdb.d:/docker-entrypoint-initdb.d
- ./doc/sql:/sql-scripts
profiles:
- with-db
# ports:
# - "3306:3306"