-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yaml
55 lines (51 loc) · 1.79 KB
/
docker-compose.yaml
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
43
44
45
46
47
48
49
50
51
52
53
54
55
version: "3"
services:
huginn:
container_name: huginn
#image: mjysci/huginn:arm32v7
#Use image for what you have Mjysci is for arm/aarch64. use huginn/huginn for AMD/linux x86
image: ghcr.io/huginn/huginn
depends_on:
- mysql
ports:
- "3000:3000" #keep inernal port mapped to 3000, you can map external port anywhere you want
volumes:
- "./data:/var/lib/MySQL"
#maps container volume to local directory called data in directory this compose file is saved in
- "./huginn:/app/huginn"
#This will create a new volume called huginn that is stored in a local directory called huginn (relative to the location of the Docker Compose file) and is mounted to the /app/huginn directory in the huginn container.
restart: "on-failure:5"
links:
- mysql
networks:
#you do not have to specify a network. I wanted to create a seperate "huginn" network ... just because
huginn:
ipv4_address: 192.168.92.21
mysql:
container_name: mysql
#image: yobasystems/alpine-mariadb:10.4.17-arm32v7
image: mysql:latest
#Comment out the image you do not want to use. mysql:lates is for AMD or x84 linux
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
restart: always
volumes:
- "./database:/var/lib/mysql"
environment:
MYSQL_ROOT_PASSWORD: huginn #change this or use .env file for security
MYSQL_PASSWORD: huginn #Change this default PW
MYSQL_DATABASE: huginn
MYSQL_USER: huginn
networks:
huginn:
ipv4_address: 192.168.92.20
#you do not need to specify a network. it will be created on default in docker if you dont
networks:
huginn:
ipam:
driver: default
config:
- subnet: "192.168.92.0/24"
volumes:
data:
database:
huginn: