six_docker_001
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
caddy.jpyanhua.site {
|
||||
# 1. 反向代理到 frps 的 HTTP 监听端口 (8080)
|
||||
reverse_proxy 127.0.0.1:8000
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
name: "yanhua_docker" # 项目名称
|
||||
services:
|
||||
django_caddy:
|
||||
image: caddy
|
||||
container_name: yanhua_caddy
|
||||
ports:
|
||||
- "80:80" # HTTP 端口
|
||||
- "443:443" # HTTPS 端口
|
||||
- "443:443/udp" # HTTP/3 支持 (可选,提升性能)
|
||||
volumes:
|
||||
- /home/ubuntu/Caddyfile:/etc/caddy/Caddyfile
|
||||
django_postgres: # postgres镜像
|
||||
image: postgres
|
||||
container_name: yanhua_postgres
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
POSTGRES_PASSWORD: "com792282"
|
||||
# POSTGRESQL_TIMEZONE: "Asia/Shanghai"
|
||||
ports:
|
||||
- "5432:5432"
|
||||
volumes:
|
||||
- postgresData:/var/lib/postgresql
|
||||
|
||||
django_web:
|
||||
image: python:3.13
|
||||
container_name: yanhua_django
|
||||
restart: always
|
||||
stdin_open: true
|
||||
ports:
|
||||
- "8000:8000"
|
||||
|
||||
gitea:
|
||||
image: gitea/gitea:latest
|
||||
container_name: gitea
|
||||
environment:
|
||||
- USER_UID=1000
|
||||
- USER_GID=1000
|
||||
restart: always
|
||||
volumes:
|
||||
- gitea:/data
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
ports:
|
||||
- "3000:3000"
|
||||
- "2222:22"
|
||||
|
||||
|
||||
networks:
|
||||
xiao_network:
|
||||
# 添加一句注释看看能不能自动上传的
|
||||
volumes:
|
||||
postgresData:
|
||||
gitea:
|
||||
Reference in New Issue
Block a user