-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
109 lines (106 loc) · 3.48 KB
/
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
# TODO: move all values to env file: passwords, URLs, users ...
# TODO: Add lightning network container.
# TODO: Finish the bookmarks project.
# The nextjs container provides:
# - GPT TRAINER UI
# - LND NETWORK MANAGEMENT UI [TODO]
# - System status overview [TODO]
# - Gaming examples
# Overview of IPs to be used in the nginx reverse proxy:
# 1000 - WORDPRESS
# 1001 - NEXCLOUD
# 1002 - NEXTJS
# 1004 - MATRIX
services:
wordpress: ## Wordpress CMS
image: wordpress:6.7.1
restart: always
ports:
- 1000:80
environment:
WORDPRESS_DB_HOST: mysql
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: wordpresspassword
WORDPRESS_DB_NAME: wordpress
WORDPRESS_CONFIG_EXTRA: |
define('WP_HOME', 'https://home.ideniox.com');
define('WP_SITEURL', 'https://home.ideniox.com');
WORDPRESS_ADMIN_USER: admin # Usuario de admin inicial
WORDPRESS_ADMIN_PASSWORD: password-brain # Contraseña de admin
depends_on:
- mysql
volumes:
- ./data/volumes/wordpress:/var/www/html
mysql: ## DB for wordpress
image: mysql:5.7
restart: always
environment:
MYSQL_ROOT_PASSWORD: rootpassword
MYSQL_DATABASE: wordpress
MYSQL_USER: wordpress
MYSQL_PASSWORD: wordpresspassword
volumes:
- ./data/volumes/mysql:/var/lib/mysql
mariadb: ## DB for nextcloud
image: mariadb:10.6.20
restart: always
command: --transaction-isolation=READ-COMMITTED --log-bin=binlog --binlog-format=ROW
volumes:
- ./data/volumes/mariadb:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=example
- MYSQL_PASSWORD=example
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
nextcloud: ## Nextcloud PHP CMS
image: nextcloud:30.0.4
restart: always
ports:
- 1001:80
links:
- mariadb
volumes:
- ./data/volumes/nextcloud:/var/www/html
- /var/www/.well_known:/var/www/.well_known
environment:
- MYSQL_PASSWORD=example
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
- MYSQL_HOST=mariadb
- OVERWRITEPROTOCOL=https
- OVERWRITEHOST=nube.ideniox.com
- OVERWRITECLIURL=https://nube.ideniox.com
- NEXTCLOUD_ADMIN_USER=admin # Usuario admin inicial
- NEXTCLOUD_ADMIN_PASSWORD=password-brain # Contraseña admin inicial
- NEXTCLOUD_TRUSTED_DOMAINS=nube.ideniox.com
redis:
image: redis:alpine
restart: unless-stopped
command: ["redis-server", "--appendonly", "yes"]
volumes:
- ./data/volumes/redis:/data
bookmarks: ## A customiced view in nextjs involving GPT lightning network and Nextcloud Forms to create views
image: jorgemartinezpizarro/bookmarks:latest ## Use fix versions as soon as "bookmarks" is fully released
restart: always
ports:
- ${PORT}:3000
environment:
- OPEN_AI_API_KEY=${OPEN_AI_API_KEY}
- NEXT_PUBLIC_NEXTCLOUD_URL=${NEXT_PUBLIC_NEXTCLOUD_URL}
- PORT=${PORT}
matrix:
image: matrixdotorg/synapse:latest
ports:
- 1004:8008
volumes:
- ./data/volumes/data:/data
- ./data/volumes/media_store:/media_store
restart: unless-stopped
entrypoint: >
/bin/sh -c "
if [ ! -f /data/homeserver.yaml ]; then
python -m synapse.app.homeserver --generate-config --server-name matrix.ideniox.com --config-path /data/homeserver.yaml --report-stats=no;
fi;
python -m synapse.app.homeserver --config-path /data/homeserver.yaml"
environment:
- SMTP_PASS=${SMTP_PASS}