Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 75b75169a8 | |||
| 1b4cc81e61 |
+2
-1
@@ -155,8 +155,9 @@ backend/public/uploads/
|
|||||||
secrets/
|
secrets/
|
||||||
keys/
|
keys/
|
||||||
|
|
||||||
|
# Own files
|
||||||
ToDo.txt
|
ToDo.txt
|
||||||
|
PayPal-QR-Code.png
|
||||||
|
|
||||||
# only in development branch
|
# only in development branch
|
||||||
next-env.d.ts
|
next-env.d.ts
|
||||||
+13
-75
@@ -1,19 +1,16 @@
|
|||||||
services:
|
services:
|
||||||
frontend:
|
# frontend:
|
||||||
container_name: ca-lose-frontend
|
# container_name: ca-lose-frontend
|
||||||
hostname: lose-verkaufen
|
# build: ./frontend
|
||||||
build: ./frontend
|
# ports:
|
||||||
depends_on:
|
# - "8002:80"
|
||||||
- backend
|
# restart: unless-stopped
|
||||||
networks:
|
|
||||||
ca-lose-internal:
|
|
||||||
ipv4_address: 172.25.0.2
|
|
||||||
restart: unless-stopped
|
|
||||||
|
|
||||||
backend:
|
backend:
|
||||||
container_name: ca-lose-backend
|
container_name: ca-lose-backend
|
||||||
hostname: backend
|
|
||||||
build: ./backend
|
build: ./backend
|
||||||
|
ports:
|
||||||
|
- "8004:8004"
|
||||||
environment:
|
environment:
|
||||||
NODE_ENV: production
|
NODE_ENV: production
|
||||||
DB_HOST: ca-lose-mysql
|
DB_HOST: ca-lose-mysql
|
||||||
@@ -22,80 +19,21 @@ services:
|
|||||||
DB_NAME: ca_lose
|
DB_NAME: ca_lose
|
||||||
depends_on:
|
depends_on:
|
||||||
- database
|
- database
|
||||||
networks:
|
|
||||||
ca-lose-internal:
|
|
||||||
ipv4_address: 172.25.0.3
|
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
database:
|
database:
|
||||||
container_name: ca-lose-mysql
|
container_name: ca-lose-mysql
|
||||||
hostname: database
|
|
||||||
image: mysql:8.0
|
image: mysql:8.0
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
ports:
|
||||||
|
- "3311:3306"
|
||||||
environment:
|
environment:
|
||||||
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
|
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
|
||||||
MYSQL_DATABASE: ca_lose
|
MYSQL_DATABASE: ca_lose
|
||||||
TZ: Europe/Berlin
|
TZ: Europe/Berlin
|
||||||
volumes:
|
volumes:
|
||||||
- ../docker/volumes/ca-lose_mysql:/var/lib/mysql
|
- ca-lose_mysql:/var/lib/mysql
|
||||||
- ./mysql-timezone.cnf:/etc/mysql/conf.d/timezone.cnf:ro
|
- ./mysql-timezone.cnf:/etc/mysql/conf.d/timezone.cnf:ro
|
||||||
networks:
|
|
||||||
ca-lose-internal:
|
|
||||||
ipv4_address: 172.25.0.4
|
|
||||||
|
|
||||||
# DNS Server für Hostname-Auflösung innerhalb des VPN
|
volumes:
|
||||||
dnsmasq:
|
ca-lose_mysql:
|
||||||
container_name: ca-lose-dns
|
|
||||||
image: andyshinn/dnsmasq:latest
|
|
||||||
restart: unless-stopped
|
|
||||||
cap_add:
|
|
||||||
- NET_ADMIN
|
|
||||||
command: >
|
|
||||||
--no-daemon
|
|
||||||
--log-queries
|
|
||||||
--address=/lose-verkaufen/172.25.0.2
|
|
||||||
--address=/frontend/172.25.0.2
|
|
||||||
--address=/backend/172.25.0.3
|
|
||||||
--address=/database/172.25.0.4
|
|
||||||
--address=/wireguard/172.25.0.6
|
|
||||||
networks:
|
|
||||||
ca-lose-internal:
|
|
||||||
ipv4_address: 172.25.0.5
|
|
||||||
|
|
||||||
# WireGuard VPN mit Web-UI (wg-easy)
|
|
||||||
wireguard:
|
|
||||||
image: ghcr.io/wg-easy/wg-easy:latest
|
|
||||||
container_name: ca-lose-wireguard
|
|
||||||
cap_add:
|
|
||||||
- NET_ADMIN
|
|
||||||
- SYS_MODULE
|
|
||||||
environment:
|
|
||||||
LANG: de
|
|
||||||
WG_HOST: dus3.the1s.de
|
|
||||||
WG_PORT: "51830"
|
|
||||||
WG_DEFAULT_DNS: "172.25.0.5"
|
|
||||||
PORT: "80" # Web-UI Port
|
|
||||||
PASSWORD_HASH: ${WIREGUARD_PASSWORD_HASH}
|
|
||||||
volumes:
|
|
||||||
- ../docker/volumes/ca-lose-wireguard:/etc/wireguard
|
|
||||||
- /lib/modules:/lib/modules:ro
|
|
||||||
ports:
|
|
||||||
- "51830:51830/udp"
|
|
||||||
# - "51831:80/tcp" # only for short configuration access - remove in production - external: 51831 internal: 80
|
|
||||||
sysctls:
|
|
||||||
- net.ipv4.ip_forward=1
|
|
||||||
- net.ipv4.conf.all.src_valid_mark=1
|
|
||||||
restart: unless-stopped
|
|
||||||
depends_on:
|
|
||||||
- dnsmasq
|
|
||||||
networks:
|
|
||||||
ca-lose-internal:
|
|
||||||
ipv4_address: 172.25.0.6
|
|
||||||
|
|
||||||
networks:
|
|
||||||
ca-lose-internal:
|
|
||||||
driver: bridge
|
|
||||||
ipam:
|
|
||||||
config:
|
|
||||||
- subnet: 172.25.0.0/24
|
|
||||||
gateway: 172.25.0.1
|
|
||||||
|
|||||||
Reference in New Issue
Block a user