Compare commits
66 Commits
master
...
9fad7dd21a
| Author | SHA1 | Date | |
|---|---|---|---|
| 9fad7dd21a | |||
| 1324c6f0a3 | |||
| 05523cd797 | |||
| f0a258a422 | |||
| 8bdb1f6a17 | |||
| 02b3f3c740 | |||
| 04acdbf72b | |||
| a24c79752d | |||
| ce89f22545 | |||
| e00d0b63e7 | |||
| 223b6ac8a1 | |||
| df0fdfe2e4 | |||
| e968457afa | |||
| 2c2920d7b5 | |||
| 15b05eb4cf | |||
| cd2e02bb82 | |||
| 7e4b38e9da | |||
| 97ac924c22 | |||
| f342e38fea | |||
| b4bf02cb14 | |||
| 0e3d0395d7 | |||
| 2da700990b | |||
| b3d731fb5e | |||
| c04cad9712 | |||
| fd030ea07e | |||
| 3adc86e8eb | |||
| 47fc79299e | |||
| a8018d7e37 | |||
| a721ab2f4f | |||
| ce85345584 | |||
| 2dea0a941c | |||
| 6f5594ade5 | |||
| 91007c85d8 | |||
| 34217290c1 | |||
| 07f05e7e94 | |||
| 462bcd7cce | |||
| 11b9cdcf02 | |||
| 59f1a17e53 | |||
| e3292ccd60 | |||
| 838e83cfc2 | |||
| 0f18439790 | |||
| 62606adab9 | |||
| b21186d2e9 | |||
| 69d4bde07e | |||
| 500d894e91 | |||
| 05571ceb34 | |||
| e0e7929741 | |||
| afb455dc28 | |||
| 3ebead084f | |||
| 674fb16aea | |||
| fbed4fb5b0 | |||
| 72ee47c543 | |||
| 9e05d2080a | |||
| e5c4f0104e | |||
| fbf7ba5ad8 | |||
| 2a19abe3bf | |||
| d7cfb08e57 | |||
| 94ae009b29 | |||
| 13d3ec50e9 | |||
| 7b5b62f46e | |||
| d07aaeb565 | |||
| 8a3ca5ea11 | |||
| 32e63e705c | |||
| 56bfb333e9 | |||
| 7c9041cf43 | |||
| 96de98c362 |
@@ -7,7 +7,6 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
- common-infra-nginx-development
|
- common-infra-nginx-development
|
||||||
- configurator
|
- configurator
|
||||||
- minio-development
|
|
||||||
environment:
|
environment:
|
||||||
MINIO_SECRET_KEY: $MINIO_SECRET_KEY_DEV
|
MINIO_SECRET_KEY: $MINIO_SECRET_KEY_DEV
|
||||||
ports:
|
ports:
|
||||||
@@ -49,8 +48,6 @@ services:
|
|||||||
|
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres:14-alpine3.19
|
image: postgres:14-alpine3.19
|
||||||
networks:
|
|
||||||
- postgres-development
|
|
||||||
volumes:
|
volumes:
|
||||||
- /sprint-data/postgres-data:/var/lib/postgresql/data
|
- /sprint-data/postgres-data:/var/lib/postgresql/data
|
||||||
environment:
|
environment:
|
||||||
@@ -77,8 +74,6 @@ services:
|
|||||||
|
|
||||||
mongo:
|
mongo:
|
||||||
image: mongo:6.0.2
|
image: mongo:6.0.2
|
||||||
networks:
|
|
||||||
- mongo-development
|
|
||||||
volumes:
|
volumes:
|
||||||
- /sprint-data/mongo:/data/db
|
- /sprint-data/mongo:/data/db
|
||||||
environment:
|
environment:
|
||||||
@@ -98,6 +93,29 @@ services:
|
|||||||
parallelism: 1
|
parallelism: 1
|
||||||
order: start-first
|
order: start-first
|
||||||
|
|
||||||
|
rabbitmq:
|
||||||
|
image: rabbitmq:3.10.7-management
|
||||||
|
volumes:
|
||||||
|
- /sprint-data/rabbitmq:/var/lib/rabbitmq
|
||||||
|
ports:
|
||||||
|
- published: 5672
|
||||||
|
target: 5672
|
||||||
|
mode: host
|
||||||
|
- published: 15672
|
||||||
|
target: 15672
|
||||||
|
mode: host
|
||||||
|
environment:
|
||||||
|
RABBITMQ_DEFAULT_PASS: $RABBITMQ_PASSWORD_DEV
|
||||||
|
deploy:
|
||||||
|
mode: replicated
|
||||||
|
restart_policy:
|
||||||
|
condition: any
|
||||||
|
placement:
|
||||||
|
constraints: [node.labels.stage == development]
|
||||||
|
update_config:
|
||||||
|
parallelism: 1
|
||||||
|
order: start-first
|
||||||
|
|
||||||
redis:
|
redis:
|
||||||
image: redis:alpine3.16
|
image: redis:alpine3.16
|
||||||
volumes:
|
volumes:
|
||||||
@@ -119,8 +137,6 @@ services:
|
|||||||
|
|
||||||
minio:
|
minio:
|
||||||
image: bitnami/minio:2022.10.8
|
image: bitnami/minio:2022.10.8
|
||||||
networks:
|
|
||||||
- minio-development
|
|
||||||
volumes:
|
volumes:
|
||||||
- minio_data:/data
|
- minio_data:/data
|
||||||
environment:
|
environment:
|
||||||
@@ -174,9 +190,3 @@ networks:
|
|||||||
external: true
|
external: true
|
||||||
clickhouse-development:
|
clickhouse-development:
|
||||||
external: true
|
external: true
|
||||||
postgres-development:
|
|
||||||
external: true
|
|
||||||
mongo-development:
|
|
||||||
external: true
|
|
||||||
minio-development:
|
|
||||||
external: true
|
|
||||||
@@ -7,7 +7,6 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
- common-infra-nginx
|
- common-infra-nginx
|
||||||
- configurator
|
- configurator
|
||||||
- minio
|
|
||||||
environment:
|
environment:
|
||||||
MINIO_SECRET_KEY: $MINIO_SECRET_KEY_PROD
|
MINIO_SECRET_KEY: $MINIO_SECRET_KEY_PROD
|
||||||
ports:
|
ports:
|
||||||
@@ -78,8 +77,6 @@ services:
|
|||||||
|
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres:14-alpine3.19
|
image: postgres:14-alpine3.19
|
||||||
networks:
|
|
||||||
- postgres
|
|
||||||
volumes:
|
volumes:
|
||||||
- /sprint-data/postgres-data:/var/lib/postgresql/data
|
- /sprint-data/postgres-data:/var/lib/postgresql/data
|
||||||
environment:
|
environment:
|
||||||
@@ -111,8 +108,6 @@ services:
|
|||||||
|
|
||||||
mongo:
|
mongo:
|
||||||
image: mongo:6.0.2
|
image: mongo:6.0.2
|
||||||
networks:
|
|
||||||
- mongo
|
|
||||||
volumes:
|
volumes:
|
||||||
- /sprint-data/mongo:/data/db
|
- /sprint-data/mongo:/data/db
|
||||||
environment:
|
environment:
|
||||||
@@ -153,8 +148,6 @@ services:
|
|||||||
|
|
||||||
minio:
|
minio:
|
||||||
image: bitnami/minio:2022.10.8
|
image: bitnami/minio:2022.10.8
|
||||||
networks:
|
|
||||||
- minio
|
|
||||||
volumes:
|
volumes:
|
||||||
- minio_data:/data
|
- minio_data:/data
|
||||||
environment:
|
environment:
|
||||||
@@ -178,9 +171,7 @@ services:
|
|||||||
order: start-first
|
order: start-first
|
||||||
|
|
||||||
gitea:
|
gitea:
|
||||||
image: gitea/gitea:1.25
|
image: gitea/gitea:1.22.3
|
||||||
networks:
|
|
||||||
- postgres
|
|
||||||
volumes:
|
volumes:
|
||||||
- /sprint-data/gitea:/data
|
- /sprint-data/gitea:/data
|
||||||
- /etc/timezone:/etc/timezone
|
- /etc/timezone:/etc/timezone
|
||||||
@@ -192,12 +183,10 @@ services:
|
|||||||
USER_UID: 1000
|
USER_UID: 1000
|
||||||
USER_GID: 1000
|
USER_GID: 1000
|
||||||
GITEA__database__DB_TYPE: postgres
|
GITEA__database__DB_TYPE: postgres
|
||||||
GITEA__database__HOST: postgres:5432
|
GITEA__database__HOST: pg.chocomarsh.com:5432
|
||||||
GITEA__database__NAME: gitea
|
GITEA__database__NAME: gitea
|
||||||
GITEA__database__USER: postgres
|
GITEA__database__USER: postgres
|
||||||
GITEA__database__PASSWD: $DB_PASSWORD_PROD
|
GITEA__database__PASSWD: $DB_PASSWORD_PROD
|
||||||
GITEA__service__DISABLE_REGISTRATION: "true"
|
|
||||||
GITEA__server__ROOT_URL: "https://gitea.chocomarsh.com/"
|
|
||||||
deploy:
|
deploy:
|
||||||
mode: replicated
|
mode: replicated
|
||||||
placement:
|
placement:
|
||||||
@@ -213,7 +202,6 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
- /sprint-data:/sprint-data
|
- /sprint-data:/sprint-data
|
||||||
- /root/.cache/act:/root/.cache/act
|
|
||||||
environment:
|
environment:
|
||||||
GITEA_INSTANCE_URL: https://gitea.chocomarsh.com/
|
GITEA_INSTANCE_URL: https://gitea.chocomarsh.com/
|
||||||
GITEA_RUNNER_REGISTRATION_TOKEN: $REGISTRATION_TOKEN
|
GITEA_RUNNER_REGISTRATION_TOKEN: $REGISTRATION_TOKEN
|
||||||
@@ -244,9 +232,3 @@ networks:
|
|||||||
external: true
|
external: true
|
||||||
clickhouse:
|
clickhouse:
|
||||||
external: true
|
external: true
|
||||||
postgres:
|
|
||||||
external: true
|
|
||||||
mongo:
|
|
||||||
external: true
|
|
||||||
minio:
|
|
||||||
external: true
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ version: '3.2'
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
agent:
|
agent:
|
||||||
image: portainer/agent:2.33.1
|
image: portainer/agent:2.11.1
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
- /var/lib/docker/volumes:/var/lib/docker/volumes
|
- /var/lib/docker/volumes:/var/lib/docker/volumes
|
||||||
@@ -14,7 +14,7 @@ services:
|
|||||||
constraints: [node.platform.os == linux]
|
constraints: [node.platform.os == linux]
|
||||||
|
|
||||||
portainer:
|
portainer:
|
||||||
image: portainer/portainer-ce:2.33.1
|
image: portainer/portainer-ce:2.11.1
|
||||||
command: -H tcp://tasks.agent:9001 --tlsskipverify
|
command: -H tcp://tasks.agent:9001 --tlsskipverify
|
||||||
ports:
|
ports:
|
||||||
- "9443:9443"
|
- "9443:9443"
|
||||||
|
|||||||
@@ -3,4 +3,3 @@ FROM gitea/act_runner:nightly
|
|||||||
RUN apk add docker
|
RUN apk add docker
|
||||||
RUN apk add git
|
RUN apk add git
|
||||||
RUN apk add --no-cache nodejs
|
RUN apk add --no-cache nodejs
|
||||||
RUN apk add --no-cache make
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ from json import loads
|
|||||||
|
|
||||||
|
|
||||||
minio_client = Minio(
|
minio_client = Minio(
|
||||||
"minio:9000",
|
"minio.dev.chocomarsh.com:9000",
|
||||||
access_key="serviceminioadmin",
|
access_key="serviceminioadmin",
|
||||||
secret_key=os.getenv("MINIO_SECRET_KEY", "minioadmin"),
|
secret_key=os.getenv("MINIO_SECRET_KEY", "minioadmin"),
|
||||||
secure=False,
|
secure=False,
|
||||||
@@ -30,22 +30,6 @@ except Exception as e:
|
|||||||
|
|
||||||
config = ""
|
config = ""
|
||||||
for host, params in hosts.items():
|
for host, params in hosts.items():
|
||||||
websocket = ""
|
|
||||||
for url in params.get("websocket", []):
|
|
||||||
websocket += """
|
|
||||||
location {url} {{
|
|
||||||
resolver 127.0.0.11;
|
|
||||||
|
|
||||||
proxy_http_version 1.1;
|
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
|
||||||
proxy_set_header Connection "upgrade";
|
|
||||||
|
|
||||||
proxy_read_timeout 86400;
|
|
||||||
proxy_send_timeout 86400;
|
|
||||||
|
|
||||||
proxy_pass http://{target_host}:{port};
|
|
||||||
}}
|
|
||||||
""".format(url=url, target_host=params["host"], port=params["port"])
|
|
||||||
config += """
|
config += """
|
||||||
server {{
|
server {{
|
||||||
listen 443 ssl http2;
|
listen 443 ssl http2;
|
||||||
@@ -55,7 +39,6 @@ for host, params in hosts.items():
|
|||||||
ssl_certificate /etc/nginx/{host}/fullchain.pem;
|
ssl_certificate /etc/nginx/{host}/fullchain.pem;
|
||||||
ssl_certificate_key /etc/nginx/{host}/privkey.pem;
|
ssl_certificate_key /etc/nginx/{host}/privkey.pem;
|
||||||
|
|
||||||
proxy_http_version 1.1;
|
|
||||||
add_header X-Frame-Options "SAMEORIGIN" always;
|
add_header X-Frame-Options "SAMEORIGIN" always;
|
||||||
add_header X-XSS-Protection "1; mode=block" always;
|
add_header X-XSS-Protection "1; mode=block" always;
|
||||||
add_header X-Content-Type-Options "nosniff" always;
|
add_header X-Content-Type-Options "nosniff" always;
|
||||||
@@ -65,16 +48,13 @@ for host, params in hosts.items():
|
|||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
|
|
||||||
{websocket}
|
|
||||||
|
|
||||||
location / {{
|
location / {{
|
||||||
resolver 127.0.0.11;
|
resolver 127.0.0.11;
|
||||||
proxy_pass http://{target_host}:{port};
|
proxy_pass http://{target_host}:{port}$request_uri;
|
||||||
}}
|
}}
|
||||||
|
|
||||||
}}\n\n
|
}}\n\n
|
||||||
""".format(
|
""".format(
|
||||||
host=host, target_host=params["host"], port=params["port"], websocket=websocket
|
host=host, target_host=params["host"], port=params["port"]
|
||||||
)
|
)
|
||||||
try:
|
try:
|
||||||
fullchain = minio_client.get_object(
|
fullchain = minio_client.get_object(
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ from json import loads
|
|||||||
|
|
||||||
|
|
||||||
minio_client = Minio(
|
minio_client = Minio(
|
||||||
"minio:9000",
|
"minio.chocomarsh.com:9000",
|
||||||
access_key="serviceminioadmin",
|
access_key="serviceminioadmin",
|
||||||
secret_key=os.getenv("MINIO_SECRET_KEY", "minioadmin"),
|
secret_key=os.getenv("MINIO_SECRET_KEY", "minioadmin"),
|
||||||
secure=False,
|
secure=False,
|
||||||
|
|||||||
@@ -8,15 +8,10 @@ docker network create -d overlay --attachable configurator || true
|
|||||||
docker network create -d overlay --attachable monitoring || true
|
docker network create -d overlay --attachable monitoring || true
|
||||||
docker network create -d overlay --attachable configurator-development || true
|
docker network create -d overlay --attachable configurator-development || true
|
||||||
docker network create -d overlay --attachable clickhouse || true
|
docker network create -d overlay --attachable clickhouse || true
|
||||||
docker network create -d overlay --attachable postgres || true
|
docker network create -d overlay --attachable clickhouse-development || true
|
||||||
docker network create -d overlay --attachable postgres-development || true
|
|
||||||
docker network create -d overlay --attachable mongo || true
|
|
||||||
docker network create -d overlay --attachable mongo-development || true
|
|
||||||
docker network create -d overlay --attachable minio || true
|
|
||||||
docker network create -d overlay --attachable minio-development || true
|
|
||||||
|
|
||||||
mkdir /sprint-data/mongo || true
|
mkdir /sprint-data/mongo || true
|
||||||
mkdir /sprint-data/redis || true
|
mkdir /sprint-data/redis || true
|
||||||
|
mkdir /sprint-data/rabbitmq || true
|
||||||
mkdir /sprint-data/certs || true
|
mkdir /sprint-data/certs || true
|
||||||
mkdir /sprint-data/gitea || true
|
mkdir /sprint-data/gitea || true
|
||||||
mkdir /sprint-data/clickhouse || true
|
mkdir /sprint-data/clickhouse || true
|
||||||
|
|||||||
Reference in New Issue
Block a user