mirror of
https://github.com/nickyeoman/docker-compose-cookbooks.git
synced 2026-09-03 18:36:22 +00:00
Cleaned up all compose files
cleaned up all the files. they should now all work for multiple projects.
This commit is contained in:
+21
-10
@@ -1,3 +1,14 @@
|
||||
################################################################################
|
||||
# Gitea
|
||||
# make sure you use the $PREFIX from .env for project_name
|
||||
# docker-compose -p project_name up -d
|
||||
#
|
||||
# Importing directly to the db (phpmydadmin)
|
||||
# you have to run the following in the container:
|
||||
# php artisan bookstack:regenerate-permissions
|
||||
#
|
||||
# Version 1
|
||||
################################################################################
|
||||
version: '3.3'
|
||||
|
||||
volumes:
|
||||
@@ -6,14 +17,15 @@ volumes:
|
||||
networks:
|
||||
traefik_web:
|
||||
external:
|
||||
name: traefik_web
|
||||
name: ${NETWORK_NAME}
|
||||
|
||||
services:
|
||||
|
||||
gitea:
|
||||
image: gitea/gitea:latest
|
||||
networks:
|
||||
- traefik_web
|
||||
# https://hub.docker.com/r/gitea/gitea
|
||||
image: gitea/gitea:${GITEA_V}
|
||||
networks:
|
||||
- ${NETWORK_NAME}
|
||||
environment:
|
||||
- USER_UID=1000
|
||||
- USER_GID=1000
|
||||
@@ -23,11 +35,10 @@ services:
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
ports:
|
||||
- "222:22"
|
||||
- "${GITEA_PORT}:22"
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.gitea.rule=Host(`gitea.nickyeoman.com`)"
|
||||
- "traefik.http.routers.gitea.entrypoints=websecure"
|
||||
- "traefik.http.routers.gitea.tls=true"
|
||||
- "traefik.http.services.gite.loadbalancer.server.port=3000"
|
||||
|
||||
- "traefik.http.routers.${PREFIX}_gitea.rule=Host(`${DOMAIN_NAME}`)"
|
||||
- "traefik.http.routers.${PREFIX}_gitea.entrypoints=websecure"
|
||||
- "traefik.http.routers.${PREFIX}_gitea.tls=true"
|
||||
- "traefik.http.services.${PREFIX}_gitea.loadbalancer.server.port=3000"
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
# Domains & Project
|
||||
PREFIX=p1
|
||||
DOMAIN_NAME=gitea.nickyeoman.com
|
||||
|
||||
# Software versions
|
||||
GITEA_V=1.11.4
|
||||
GITEA_PORT=22
|
||||
|
||||
# Network
|
||||
NETWORK_NAME=traefik_web
|
||||
Reference in New Issue
Block a user