This commit is contained in:
root committed 2024-02-28 12:42:50 +02:00
commit 72c4d16448
37 files changed
+1126

No files matched your search

+26
View File
@@ -0,0 +1,26 @@
version: "3.9"
services:
api:
image: "{{ api_image }}"
volumes:
- /var/log/{{ project_name }}:/var/log
env_file:
- "{{ config_dir }}/.env"
environment:
PORT: 3002
expose:
- 3002
labels:
traefik.enable: true
traefik.http.routers.{{ project_name }}-client.rule: 'Host(`{{ api_domain }}`)'
traefik.http.routers.{{ project_name }}-client.entryPoints: https
traefik.http.routers.{{ project_name }}-client.tls: true
networks:
- http
restart: always
networks:
http:
external: true
name: traefik_http
+19
View File
@@ -0,0 +1,19 @@
version: "3.9"
services:
portainer:
image: portainer/portainer-ce:latest
command: [ "--admin-password=$$2y$$05$$7pyfUY3vUdgTe/CMoV.jT.t01EU71OgqjIu.jd9pQGLEVCW.GFqbO" ]
ports:
- "9000:9000"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- portainer_data:/data
labels:
traefik.enable: 'false'
restart: always
volumes:
portainer_data:
driver: local
name: portainer_data
+29
View File
@@ -0,0 +1,29 @@
version: "3.9"
services:
traefik:
image: traefik:v2.11
ports:
- "80:80"
- "443:443"
- "8080:8080"
volumes:
- "{{ config_dir }}/traefik.toml:/etc/traefik/traefik.toml:ro"
- "{{ config_dir }}/traefik-config:/etc/traefik-config:ro"
- "{{ config_dir }}/certs:/certs:ro"
- "/var/run/docker.sock:/var/run/docker.sock:ro"
labels:
traefik.enable: 'true'
traefik.http.routers.dashboard-secure.rule: 'Host(`{{ traefik_dashboard_hostname }}`)'
traefik.http.routers.dashboard-secure.service: 'api@internal'
traefik.http.routers.dashboard-secure.middlewares: 'auth@file'
traefik.http.routers.dashboard-secure.entrypoints: 'https'
traefik.http.routers.dashboard-secure.tls: 'true'
restart: always
networks:
- http
networks:
http:
external: true
name: traefik_http
+40
View File
@@ -0,0 +1,40 @@
version: '3.9'
services:
client:
image: "{{ client_image }}"
env_file:
- "{{ config_dir }}/.env.local"
labels:
traefik.enable: true
traefik.http.routers.{{ project_name }}-client.rule: '( Host(`{{ web_domain }}`) || Host(`{{ project_domain }}`) )'
traefik.http.routers.{{ project_name }}-client.entryPoints: https
traefik.http.routers.{{ project_name }}-client.tls: true
networks:
- http
restart: always
server:
image: "{{ server_image }}"
env_file:
- "{{ config_dir }}/.env"
environment:
PORT: 3001
CHECK_STATUS_ID: "{{ web_status_id }}"
expose:
- 3001
labels:
traefik.enable: true
traefik.http.routers.{{ project_name }}-server.rule: '( Host(`{{ web_domain }}`) || Host(`{{ project_domain }}`) ) && ( PathPrefix(`/api`) || PathPrefix(`/app`) )'
traefik.http.routers.{{ project_name }}-server.entryPoints: https
traefik.http.routers.{{ project_name }}-server.tls: true
networks:
- http
restart: always
networks:
http:
external: true
name: traefik_http