代码拉取完成,页面将自动刷新
networks:
hipy-network:
name: hipy-network
driver: bridge
ipam:
driver: default
config:
- gateway: 172.23.0.1
subnet: 172.23.0.0/24
driver_opts:
com.docker.network.bridge.name: hipy-network
services:
redis:
container_name: hipy-redis
restart: always
image: redis:latest
command: redis-server --requirepass hipy
volumes:
- /hipy/redis_data/:/data/
ports:
- "6379:6379"
expose:
- 6379
networks:
hipy-network:
ipv4_address: 172.23.0.5
postgres:
container_name: hipy-pg
restart: always
image: postgres:latest
environment:
- POSTGRES_USER=hipy
- POSTGRES_PASSWORD=hipy
- POSTGRES_DB=hipy
volumes:
- /hipy/postgres/data:/var/lib/postgresql/data
ports:
- "5432:5432"
expose:
- 5432
networks:
hipy-network:
ipv4_address: 172.23.0.4
command: [postgres, -c, max_connections=200]
fastapi:
container_name: hipy-fastapi
image: hipy-server:20240106
restart: always
depends_on:
- postgres
- redis
ports:
- "5707:5707"
expose:
- 5707
networks:
hipy-network:
ipv4_address: 172.23.0.3
vue:
container_name: hipy-vue
image: hipy-vue:4.3.0
restart: always
depends_on:
- fastapi
ports:
- "80:80"
expose:
- 80
networks:
hipy-network:
ipv4_address: 172.23.0.2
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。