Premier commit
This commit is contained in:
91
docker-compose.yml
Normal file
91
docker-compose.yml
Normal file
@@ -0,0 +1,91 @@
|
|||||||
|
version: "3.9"
|
||||||
|
|
||||||
|
services:
|
||||||
|
domoticz:
|
||||||
|
image: domoticz/domoticz
|
||||||
|
container_name: domoticz
|
||||||
|
ports:
|
||||||
|
- "8080:8080"
|
||||||
|
- "6144:6144"
|
||||||
|
volumes:
|
||||||
|
- domoticz_data:/opt/domoticz/userdata
|
||||||
|
restart: unless-stopped
|
||||||
|
|
||||||
|
freqtrade:
|
||||||
|
image: freqtradeorg/freqtrade:stable
|
||||||
|
container_name: freqtrade
|
||||||
|
command: >
|
||||||
|
bash -c "
|
||||||
|
freqtrade create-userdir --userdir /freqtrade/userdir &&
|
||||||
|
tail -f /dev/null
|
||||||
|
"
|
||||||
|
volumes:
|
||||||
|
- ./freqtrade:/freqtrade/userdir
|
||||||
|
ports:
|
||||||
|
- "8081:8080"
|
||||||
|
restart: unless-stopped
|
||||||
|
|
||||||
|
portainer:
|
||||||
|
image: portainer/portainer-ce:latest
|
||||||
|
container_name: portainer
|
||||||
|
ports:
|
||||||
|
- "9000:9000"
|
||||||
|
- "9443:9443"
|
||||||
|
volumes:
|
||||||
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
|
- portainer_data:/data
|
||||||
|
restart: unless-stopped
|
||||||
|
|
||||||
|
python:
|
||||||
|
image: python:3.12-slim
|
||||||
|
container_name: python
|
||||||
|
volumes:
|
||||||
|
- ./python:/workspace
|
||||||
|
command: tail -f /dev/null
|
||||||
|
restart: unless-stopped
|
||||||
|
|
||||||
|
mysql:
|
||||||
|
image: mysql:8.0
|
||||||
|
container_name: mysql
|
||||||
|
environment:
|
||||||
|
MYSQL_ROOT_PASSWORD: root
|
||||||
|
MYSQL_DATABASE: mydb
|
||||||
|
MYSQL_USER: user
|
||||||
|
MYSQL_PASSWORD: userpass
|
||||||
|
MYSQL_GITEA_DB: gitea
|
||||||
|
MYSQL_GITEA_USER: gitea
|
||||||
|
MYSQL_GITEA_PASSWORD: gitea_pass
|
||||||
|
ports:
|
||||||
|
- "3306:3306"
|
||||||
|
volumes:
|
||||||
|
- mysql_data:/var/lib/mysql
|
||||||
|
- ./mysql-init:/docker-entrypoint-initdb.d
|
||||||
|
restart: unless-stopped
|
||||||
|
|
||||||
|
gitea:
|
||||||
|
image: gitea/gitea:latest
|
||||||
|
container_name: gitea
|
||||||
|
environment:
|
||||||
|
USER_UID: 1000
|
||||||
|
USER_GID: 1000
|
||||||
|
GITEA__database__DB_TYPE: mysql
|
||||||
|
GITEA__database__HOST: mysql:3306
|
||||||
|
GITEA__database__NAME: gitea
|
||||||
|
GITEA__database__USER: gitea
|
||||||
|
GITEA__database__PASSWD: gitea_pass
|
||||||
|
volumes:
|
||||||
|
- gitea_data:/data
|
||||||
|
ports:
|
||||||
|
- "3000:3000" # Web
|
||||||
|
- "2222:22" # SSH GIT
|
||||||
|
depends_on:
|
||||||
|
- mysql
|
||||||
|
restart: unless-stopped
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
domoticz_data:
|
||||||
|
portainer_data:
|
||||||
|
mysql_data:
|
||||||
|
gitea_data:
|
||||||
|
|
||||||
|
|
||||||
5
mysql-init/gitea.sql
Normal file
5
mysql-init/gitea.sql
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
CREATE DATABASE IF NOT EXISTS gitea CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||||
|
CREATE USER IF NOT EXISTS 'gitea'@'%' IDENTIFIED BY 'gitea_pass';
|
||||||
|
GRANT ALL PRIVILEGES ON gitea.* TO 'gitea'@'%';
|
||||||
|
FLUSH PRIVILEGES;
|
||||||
|
|
||||||
Reference in New Issue
Block a user