mirror of
https://gitlab.sectorq.eu/home/docker-compose.git
synced 2026-03-14 22:30:01 +01:00
Compare commits
5 Commits
1b3977f65d
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| bdbefe4337 | |||
| 5192bf2ede | |||
| 07cfb3e148 | |||
| a59f01ff72 | |||
| 9623b115cd |
2
__swarm/api_server/.env
Executable file
2
__swarm/api_server/.env
Executable file
@@ -0,0 +1,2 @@
|
|||||||
|
APPNAME=wordpress
|
||||||
|
DOCKER_REGISTRY=r.sectorq.eu/library/
|
||||||
23
__swarm/api_server/api_server-swarm.yml
Normal file
23
__swarm/api_server/api_server-swarm.yml
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
services:
|
||||||
|
app:
|
||||||
|
image: ${DOCKER_REGISTRY:-}api-server:latest
|
||||||
|
secrets:
|
||||||
|
- vault_token
|
||||||
|
environment:
|
||||||
|
VAULT_TOKEN: /run/secrets/vault_token
|
||||||
|
API_TOKEN: mysecrettoken
|
||||||
|
ports:
|
||||||
|
- target: 8000
|
||||||
|
published: 8002
|
||||||
|
protocol: tcp
|
||||||
|
mode: ingress
|
||||||
|
deploy:
|
||||||
|
replicas: 1
|
||||||
|
placement:
|
||||||
|
constraints:
|
||||||
|
- node.role == manager
|
||||||
|
|
||||||
|
secrets:
|
||||||
|
vault_token:
|
||||||
|
external: true
|
||||||
|
|
||||||
0
__swarm/api_server/stack.env
Executable file
0
__swarm/api_server/stack.env
Executable file
@@ -1,38 +1,38 @@
|
|||||||
version: "3.9"
|
version: "3.9"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
# Rocky Linux 9 mirror
|
# # Rocky Linux 9 mirror
|
||||||
rocky9-sync:
|
# rocky9-sync:
|
||||||
image: rockylinux:9
|
# image: rockylinux:9
|
||||||
container_name: rocky9-sync
|
# container_name: rocky9-sync
|
||||||
user: root
|
# user: root
|
||||||
volumes:
|
# volumes:
|
||||||
- /share/docker_data/repo_mirror/data/rocky/9:/repos # mirror storage
|
# - /media/nas/qda_1/repos/rocky/9:/repos # mirror storage
|
||||||
- /share/docker_data/repo_mirror/scripts/rocky9.sh:/rocky9.sh
|
# - /share/docker_data/repo_mirror/scripts/rocky9.sh:/rocky9.sh
|
||||||
command: /rocky9.sh
|
# command: /rocky9.sh
|
||||||
restart: "no"
|
# restart: "no"
|
||||||
|
|
||||||
# Debian mirror
|
# # Debian mirror
|
||||||
debian-sync:
|
# debian-sync:
|
||||||
image: ubuntu:24.04
|
# image: ubuntu:24.04
|
||||||
container_name: debian-sync
|
# container_name: debian-sync
|
||||||
user: root
|
# user: root
|
||||||
volumes:
|
# volumes:
|
||||||
- /share/docker_data/repo_mirror/data/debian:/mirror
|
# - /media/nas/qda_1/repos/debian:/mirror
|
||||||
- /share/docker_data/repo_mirror/scripts/debian.sh:/debian.sh
|
# - /share/docker_data/repo_mirror/scripts/debian.sh:/debian.sh
|
||||||
command: /debian.sh
|
# command: /debian.sh
|
||||||
restart: "no"
|
# restart: "no"
|
||||||
# Ubuntu mirror
|
# # Ubuntu mirror
|
||||||
ubuntu-sync:
|
# ubuntu-sync:
|
||||||
image: ubuntu:24.04
|
# image: ubuntu:24.04
|
||||||
container_name: ubuntu-sync
|
# container_name: ubuntu-sync
|
||||||
user: root
|
# user: root
|
||||||
volumes:
|
# volumes:
|
||||||
- /share/docker_data/repo_mirror/data/ubuntu:/mirror
|
# - /media/nas/qda_1/repos/ubuntu:/mirror
|
||||||
- /share/docker_data/repo_mirror/scripts/ubuntu.sh:/ubuntu.sh
|
# - /share/docker_data/repo_mirror/scripts/ubuntu.sh:/ubuntu.sh
|
||||||
command: /ubuntu.sh
|
# command: /ubuntu.sh
|
||||||
restart: "no"
|
# restart: "no"
|
||||||
# Optional: Nginx to serve both mirrors
|
# # Optional: Nginx to serve both mirrors
|
||||||
nginx:
|
nginx:
|
||||||
image: nginx:1.28
|
image: nginx:1.28
|
||||||
container_name: mirror-nginx
|
container_name: mirror-nginx
|
||||||
@@ -40,8 +40,7 @@ services:
|
|||||||
- "8383:80"
|
- "8383:80"
|
||||||
volumes:
|
volumes:
|
||||||
- /media/nas/qda_1/repos/docker/:/usr/share/nginx/html/docker
|
- /media/nas/qda_1/repos/docker/:/usr/share/nginx/html/docker
|
||||||
- /media/m-server/repos/ubuntu/:/usr/share/nginx/html/ubuntu
|
- /media/nas/qda_1/repos/ubuntu/:/usr/share/nginx/html/ubuntu
|
||||||
- /media/nas/qda_1/repos/rocky/:/usr/share/nginx/html/rocky
|
- /media/nas/qda_1/repos/rocky/:/usr/share/nginx/html/rocky
|
||||||
- /share/docker_data/repo_mirror/data/debian:/usr/share/nginx/html/debian
|
|
||||||
- /share/docker_data/repo_mirror/config/nginx.conf:/etc/nginx/nginx.conf:ro
|
- /share/docker_data/repo_mirror/config/nginx.conf:/etc/nginx/nginx.conf:ro
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
Reference in New Issue
Block a user