mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
fix(docker): force bind ports to localhost only
Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
ffb450db71
commit
41e0eaaece
1 changed files with 10 additions and 10 deletions
|
@ -48,7 +48,7 @@ services:
|
||||||
test: "bash /docker/health/redis.sh"
|
test: "bash /docker/health/redis.sh"
|
||||||
interval: 3s
|
interval: 3s
|
||||||
ports:
|
ports:
|
||||||
- "16379:6379"
|
- "127.0.0.1:16379:6379"
|
||||||
|
|
||||||
mariadb:
|
mariadb:
|
||||||
image: aurweb:latest
|
image: aurweb:latest
|
||||||
|
@ -58,7 +58,7 @@ services:
|
||||||
ports:
|
ports:
|
||||||
# This will expose mariadbd on 127.0.0.1:13306 in the host.
|
# This will expose mariadbd on 127.0.0.1:13306 in the host.
|
||||||
# Ex: `mysql -uaur -paur -h 127.0.0.1 -P 13306 aurweb`
|
# Ex: `mysql -uaur -paur -h 127.0.0.1 -P 13306 aurweb`
|
||||||
- "13306:3306"
|
- "127.0.0.1:13306:3306"
|
||||||
volumes:
|
volumes:
|
||||||
- mariadb_run:/var/run/mysqld # Bind socket in this volume.
|
- mariadb_run:/var/run/mysqld # Bind socket in this volume.
|
||||||
- mariadb_data:/var/lib/mysql
|
- mariadb_data:/var/lib/mysql
|
||||||
|
@ -88,7 +88,7 @@ services:
|
||||||
ports:
|
ports:
|
||||||
# This will expose mariadbd on 127.0.0.1:13307 in the host.
|
# This will expose mariadbd on 127.0.0.1:13307 in the host.
|
||||||
# Ex: `mysql -uaur -paur -h 127.0.0.1 -P 13306 aurweb`
|
# Ex: `mysql -uaur -paur -h 127.0.0.1 -P 13306 aurweb`
|
||||||
- "13307:3306"
|
- "127.0.0.1:13307:3306"
|
||||||
volumes:
|
volumes:
|
||||||
- mariadb_test_run:/var/run/mysqld # Bind socket in this volume.
|
- mariadb_test_run:/var/run/mysqld # Bind socket in this volume.
|
||||||
healthcheck:
|
healthcheck:
|
||||||
|
@ -104,7 +104,7 @@ services:
|
||||||
entrypoint: /docker/git-entrypoint.sh
|
entrypoint: /docker/git-entrypoint.sh
|
||||||
command: /docker/scripts/run-sshd.sh
|
command: /docker/scripts/run-sshd.sh
|
||||||
ports:
|
ports:
|
||||||
- "2222:2222"
|
- "127.0.0.1:2222:2222"
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: "bash /docker/health/sshd.sh"
|
test: "bash /docker/health/sshd.sh"
|
||||||
interval: 3s
|
interval: 3s
|
||||||
|
@ -141,7 +141,7 @@ services:
|
||||||
git:
|
git:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
ports:
|
ports:
|
||||||
- "13000:3000"
|
- "127.0.0.1:13000:3000"
|
||||||
volumes:
|
volumes:
|
||||||
- git_data:/aurweb/aur.git
|
- git_data:/aurweb/aur.git
|
||||||
|
|
||||||
|
@ -161,7 +161,7 @@ services:
|
||||||
git:
|
git:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
ports:
|
ports:
|
||||||
- "13001:3000"
|
- "127.0.0.1:13001:3000"
|
||||||
volumes:
|
volumes:
|
||||||
- git_data:/aurweb/aur.git
|
- git_data:/aurweb/aur.git
|
||||||
|
|
||||||
|
@ -205,7 +205,7 @@ services:
|
||||||
- mariadb_run:/var/run/mysqld
|
- mariadb_run:/var/run/mysqld
|
||||||
- archives:/var/lib/aurweb/archives
|
- archives:/var/lib/aurweb/archives
|
||||||
ports:
|
ports:
|
||||||
- "19000:9000"
|
- "127.0.0.1:19000:9000"
|
||||||
|
|
||||||
fastapi:
|
fastapi:
|
||||||
image: aurweb:latest
|
image: aurweb:latest
|
||||||
|
@ -234,7 +234,7 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- mariadb_run:/var/run/mysqld
|
- mariadb_run:/var/run/mysqld
|
||||||
ports:
|
ports:
|
||||||
- "18000:8000"
|
- "127.0.0.1:18000:8000"
|
||||||
|
|
||||||
nginx:
|
nginx:
|
||||||
image: aurweb:latest
|
image: aurweb:latest
|
||||||
|
@ -244,8 +244,8 @@ services:
|
||||||
entrypoint: /docker/nginx-entrypoint.sh
|
entrypoint: /docker/nginx-entrypoint.sh
|
||||||
command: /docker/scripts/run-nginx.sh
|
command: /docker/scripts/run-nginx.sh
|
||||||
ports:
|
ports:
|
||||||
- "8443:8443" # PHP
|
- "127.0.0.1:8443:8443" # PHP
|
||||||
- "8444:8444" # FastAPI
|
- "127.0.0.1:8444:8444" # FastAPI
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: "bash /docker/health/nginx.sh"
|
test: "bash /docker/health/nginx.sh"
|
||||||
interval: 3s
|
interval: 3s
|
||||||
|
|
Loading…
Add table
Reference in a new issue