TraefikIntegration #5

Merged
luke-else merged 43 commits from TraefikIntegration into master 2023-08-08 19:50:40 +00:00
7 changed files with 105 additions and 48 deletions
Showing only changes of commit cfe86a01a2 - Show all commits

View File

@ -8,4 +8,12 @@ services:
container_name: vaultwarden container_name: vaultwarden
volumes: volumes:
- ./bitwarden/:/data/ - ./bitwarden/:/data/
restart: unless-stopped networks:
- bitwarden
depends_on:
- traefik
restart: unless-stopped
networks:
bitwarden:
external: true

View File

@ -6,33 +6,48 @@ services:
mongodb: mongodb:
image: "mongo:latest" image: "mongo:latest"
container_name: mongoDB container_name: mongoDB
volumes:
- ./mongo/:/data/db
networks:
- backend
ports:
- "27017:27017"
depends_on:
- traefik
environment: environment:
MONGO_INITDB_ROOT_USERNAME: root MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: rootpassword MONGO_INITDB_ROOT_PASSWORD: rootpassword
ports:
- "27017:27017"
volumes:
- ./mongo/:/data/db
restart: unless-stopped restart: unless-stopped
#MySQL (3306) + phpMyAdmin () #MySQL (3306) + phpMyAdmin ()
mysql: mysql:
image: "mysql" image: "mysql"
container_name: MySQL container_name: MySQL
volumes:
- ./mysql/:/var/lib/mysql
networks:
- backend
ports:
- "3306:3306"
depends_on:
- traefik
environment: environment:
MYSQL_ROOT_PASSWORD: rootpassword MYSQL_ROOT_PASSWORD: rootpassword
MYSQL_DATABASE: test_db MYSQL_DATABASE: test_db
ports:
- "3306:3306"
volumes:
- ./mysql/:/var/lib/mysql
restart: unless-stopped restart: unless-stopped
phpMyAdmin: phpMyAdmin:
image: "phpmyadmin/phpmyadmin:latest" image: "phpmyadmin/phpmyadmin:latest"
container_name: phpMyAdmin container_name: phpMyAdmin
networks:
- backend
depends_on:
- mysql
- traefik
environment: environment:
PMA_HOST: mysql PMA_HOST: mysql
restart: unless-stopped restart: unless-stopped
depends_on:
- mysql networks:
backend:
external: true

View File

@ -6,6 +6,16 @@ services:
gitea: gitea:
image: gitea/gitea:latest image: gitea/gitea:latest
container_name: gitea container_name: gitea
volumes:
- ./gitea:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
networks:
- development
ports:
- "222:22"
depends_on:
- traefik
environment: environment:
- APP_NAME="gitea" - APP_NAME="gitea"
- USER_UID=1000 - USER_UID=1000
@ -19,10 +29,8 @@ services:
- SSH_PORT=222 - SSH_PORT=222
- SSH_LISTEN_PORT=22 - SSH_LISTEN_PORT=22
- DB_TYPE=sqlite3 - DB_TYPE=sqlite3
ports: restart: unless-stopped
- "222:22"
volumes: networks:
- ./gitea:/data development:
- /etc/timezone:/etc/timezone:ro external: true
- /etc/localtime:/etc/localtime:ro
restart: unless-stopped

View File

@ -4,39 +4,40 @@ services:
#Jira #Jira
Jira: Jira:
depends_on:
- 'postgresql'
image: atlassian/jira-software:latest image: atlassian/jira-software:latest
container_name: Jira container_name: Jira
volumes:
- ./jira:/var/atlassian/jira
networks:
- jira
- development
ports:
- '8080:8080'
depends_on:
- postgresql
- traefik
environment: environment:
VIRTUAL_HOST: localhost VIRTUAL_HOST: localhost
CATALINA_OPTS: '-Xms1024m -Xmx2048m -XX:+UseG1GC -Datlassian.plugins.enable.wait=300' CATALINA_OPTS: '-Xms1024m -Xmx2048m -XX:+UseG1GC -Datlassian.plugins.enable.wait=300'
X_PROXY_NAME: jira.luke-else.co.uk X_PROXY_NAME: jira.luke-else.co.uk
X_PROXY_PORT: 443 X_PROXY_PORT: 443
X_PROXY_SCHEME: https X_PROXY_SCHEME: https
networks:
- Jira
- Development
ports:
- '8080:8080'
volumes:
- ./jira:/var/atlassian/jira
restart: unless-stopped restart: unless-stopped
#Postgres database #Postgres database
postgresql: postgresql:
image: sameersbn/postgresql:latest image: sameersbn/postgresql:latest
container_name: postgresql container_name: postgresql
volumes:
- ./postgresql:/var/lib/postgresql
networks:
- jira
environment: environment:
- DEBUG=false - DEBUG=false
- DB_USER=jira - DB_USER=jira
- DB_PASS=password - DB_PASS=password
- DB_NAME=jiradb - DB_NAME=jiradb
- DB_EXTENSION=pg_trgm - DB_EXTENSION=pg_trgm
volumes:
- ./postgresql:/var/lib/postgresql
networks:
- jira
restart: unless-stopped restart: unless-stopped
volumes: volumes:
@ -47,4 +48,6 @@ volumes:
networks: networks:
jira: jira:
driver: bridge name: jira
development:
external: true

View File

@ -1,29 +1,44 @@
version: '3.8' version: '3.8'
services: services:
nextcloud:
image: nextcloud
container_name: nextcloud
links:
- db
volumes:
- ./nextcloud:/var/www/html
networks:
- services
- nextcloud
depends_on:
- traefik
- db
environment:
- MYSQL_PASSWORD=
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
- MYSQL_HOST=db
restart: unless-stopped
db: db:
image: mariadb image: mariadb
container_name: nextclouddb container_name: nextclouddb
restart: always
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
volumes: volumes:
- ./db:/var/lib/mysql - ./db:/var/lib/mysql
networks:
- nextcloud
environment: environment:
- MYSQL_ROOT_PASSWORD= - MYSQL_ROOT_PASSWORD=
- MYSQL_PASSWORD= - MYSQL_PASSWORD=
- MYSQL_DATABASE=nextcloud - MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud - MYSQL_USER=nextcloud
restart: unless-stopped
networks:
services:
external: true
nextcloud: nextcloud:
image: nextcloud name: nextcloud
container_name: nextcloud
restart: always
links:
- db
volumes:
- ./nextcloud:/var/www/html
environment:
- MYSQL_PASSWORD=
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
- MYSQL_HOST=db

View File

@ -31,9 +31,9 @@ networks:
name: frontend name: frontend
gitea: gitea:
name: development name: development
databases: backend:
name: backend name: backend
bitwarden: bitwarden:
name: bitwarden name: bitwarden
nextcloud: services:
name: services name: services

View File

@ -8,6 +8,8 @@ services:
container_name: luke-else.co.uk container_name: luke-else.co.uk
volumes: volumes:
- ./luke-else.co.uk/:/var/www/html - ./luke-else.co.uk/:/var/www/html
depends_on:
- traefik
restart: unless-stopped restart: unless-stopped
snexo.co.uk: snexo.co.uk:
@ -15,4 +17,10 @@ services:
container_name: snexo.co.uk container_name: snexo.co.uk
volumes: volumes:
- ./snexo.co.uk/:/var/www/html - ./snexo.co.uk/:/var/www/html
restart: unless-stopped depends_on:
- traefik
restart: unless-stopped
networks:
frontend:
external: true