Split up to stacks and add portainer.
This commit is contained in:
77
development/docker-compose.yaml
Normal file
77
development/docker-compose.yaml
Normal file
@@ -0,0 +1,77 @@
|
||||
version: "3.9"
|
||||
|
||||
volumes:
|
||||
gitea:
|
||||
name: gitea
|
||||
kimai:
|
||||
name: kimai
|
||||
kimai-var:
|
||||
name: kimai-var
|
||||
|
||||
networks:
|
||||
proxy:
|
||||
external: true
|
||||
internal:
|
||||
external: true
|
||||
|
||||
services:
|
||||
gitea:
|
||||
image: gitea/gitea
|
||||
container_name: gitea
|
||||
environment:
|
||||
- USER_UID=1000
|
||||
- USER_GID=1000
|
||||
- GITEA__database__DB_TYPE=postgres
|
||||
- GITEA__database__HOST=psql14:5432
|
||||
- GITEA__database__NAME=gitea
|
||||
- GITEA__database__USER=gitea
|
||||
- GITEA__database__PASSWD=sadlkf0234lsdf
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- gitea:/data
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
depends_on:
|
||||
- psql14
|
||||
networks:
|
||||
- internal
|
||||
- proxy
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.gitea-web.entrypoints=web"
|
||||
- "traefik.http.routers.gitea-web.rule=Host(`gitea.localhost`) || Host(`gitea.local`)"
|
||||
- "traefik.http.services.gitea-web.loadbalancer.server.port=3000"
|
||||
|
||||
nginx-kimai:
|
||||
image: nginx:alpine
|
||||
container_name: nginx-kimai
|
||||
restart: unless-stopped
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.kimai.entrypoints=web"
|
||||
- "traefik.http.routers.kimai.rule=Host(`kimai.localhost`)"
|
||||
- "traefik.http.services.kimai.loadbalancer.server.port=80"
|
||||
depends_on:
|
||||
- kimai
|
||||
networks:
|
||||
- proxy
|
||||
- internal
|
||||
volumes:
|
||||
- kimai:/opt/kimai/public:ro
|
||||
- ${PWD}/kimai.conf:/etc/nginx/conf.d/default.conf
|
||||
|
||||
kimai:
|
||||
image: kimai/kimai2
|
||||
container_name: kimai
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- ADMINMAIL=christiansteinle@arcor.de
|
||||
- ADMINPASS=ZovJdPamHwSNCGTcOPDb
|
||||
- DATABASE_URL=mysql://kimai:xXW5dnQoMpAmdXrQgUgU@mysql8/kimai
|
||||
- TRUSTED_HOSTS=kimai.localhost
|
||||
networks:
|
||||
- internal
|
||||
volumes:
|
||||
- kimai:/opt/kimai/public
|
||||
- kimai-var:/opt/kimai/var
|
||||
|
||||
25
development/kimai.conf
Normal file
25
development/kimai.conf
Normal file
@@ -0,0 +1,25 @@
|
||||
server {
|
||||
listen 80;
|
||||
index index.php;
|
||||
server_name kimai.localhost;
|
||||
root /opt/kimai/public;
|
||||
|
||||
# cache static asset files
|
||||
location ~* \.(ico|css|js|gif|jpe?g|png)(\?[0-9]+)?$ {
|
||||
expires max;
|
||||
log_not_found off;
|
||||
}
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.php$is_args$args;
|
||||
}
|
||||
|
||||
location ~ ^/index\.php(/|$) {
|
||||
fastcgi_pass kimai:9000;
|
||||
fastcgi_split_path_info ^(.+\.php)(/.*)$;
|
||||
include fastcgi_params;
|
||||
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
|
||||
fastcgi_param DOCUMENT_ROOT $realpath_root;
|
||||
internal;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user