Compare commits

...

3 Commits

Author SHA1 Message Date
20f6d37207 Add Gitea 2026-04-04 07:27:46 -03:00
c36db2cb01 Add Kan 2026-04-04 07:27:28 -03:00
73a838ef23 Add NPM 2026-04-04 07:27:11 -03:00
4 changed files with 134 additions and 0 deletions

46
gitea/docker-compose.yml Normal file
View File

@@ -0,0 +1,46 @@
networks:
gitea:
external: true
services:
server:
image: docker.gitea.com/gitea:1.25
container_name: gitea
environment:
- USER_UID=1000
- USER_GID=1000
- GITEA__database__DB_TYPE=postgres
- GITEA__database__HOST=db:5432
- GITEA__database__NAME=gitea
- GITEA__database__USER=gitea
- GITEA__database__PASSWD=mypassword
restart: unless-stopped
networks:
- gitea
volumes:
- ./gitea:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports:
- "3000:3000"
- "2222:22"
depends_on:
db:
condition: service_healthy
db:
image: postgres:15
restart: unless-stopped
environment:
- POSTGRES_USER=gitea
- POSTGRES_PASSWORD=mypassword
- POSTGRES_DB=gitea
networks:
- gitea
volumes:
- ./postgres:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U gitea -d gitea"]
interval: 10s
timeout: 5s
retries: 5

4
kan/.env Normal file
View File

@@ -0,0 +1,4 @@
NEXT_PUBLIC_BASE_URL="https://kan.mysite.net"
BETTER_AUTH_SECRET="32-character-random-string"
POSTGRES_PASSWORD="mypassword"
POSTGRES_URL="http://kan:mypassword@kan-db:5432/kan_db"

58
kan/docker-compose.yml Normal file
View File

@@ -0,0 +1,58 @@
services:
migrate:
image: ghcr.io/kanbn/kan-migrate:latest
container_name: kan-migrate
networks:
- kan-network
environment:
- POSTGRES_URL=${POSTGRES_URL}
depends_on:
postgres:
condition: service_healthy
restart: "no"
web:
image: ghcr.io/kanbn/kan:latest
container_name: kan-web
expose:
- 3000
networks:
- kan-network
env_file:
- .env
environment:
- NEXT_PUBLIC_BASE_URL=${NEXT_PUBLIC_BASE_URL}
- BETTER_AUTH_SECRET=${BETTER_AUTH_SECRET}
- POSTGRES_URL=${POSTGRES_URL}
- NEXT_PUBLIC_ALLOW_CREDENTIALS=true
depends_on:
migrate:
condition: service_completed_successfully
restart: unless-stopped
postgres:
image: postgres:15
container_name: kan-db
environment:
- POSTGRES_DB=kan_db
- POSTGRES_USER=kan
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
ports:
- 5432:5432
volumes:
- kan_postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U kan -d kan_db"]
interval: 5s
timeout: 5s
retries: 10
restart: unless-stopped
networks:
- kan-network
networks:
kan-network:
external: true
volumes:
kan_postgres_data:

View File

@@ -0,0 +1,26 @@
services:
app:
container_name: nginx
image: 'jc21/nginx-proxy-manager:latest'
restart: unless-stopped
environment:
TZ: "America/Santiago"
ports:
- '80:80'
- '81:81'
- '443:443'
volumes:
- ./data:/data
- ./letsencrypt:/etc/letsencrypt
networks:
- proxy
- kan-network
- gitea
networks:
proxy:
name: proxy
kan-network:
name: kan-network
gitea:
name: gitea