forked from DevOps/deploy.stack
refactor: 统一环境变量命名并整理配置文件格式
1. 将所有环境变量中的Volumes_PATH统一改为Volumes_Path 2. 把旧的.env.cnf文件重命名为.env.cfg 3. 将compose.yaml文件统一替换为stack.yml/compose.yml格式 4. 删除冗余的旧版compose配置文件
This commit is contained in:
41
n9e/compose-pgsql/stack.yml
Normal file
41
n9e/compose-pgsql/stack.yml
Normal file
@@ -0,0 +1,41 @@
|
||||
networks:
|
||||
nightingale:
|
||||
driver: bridge
|
||||
|
||||
|
||||
services:
|
||||
|
||||
redis:
|
||||
image: "redis:8-alpine"
|
||||
container_name: redis
|
||||
hostname: redis
|
||||
restart: always
|
||||
ports:
|
||||
- "6379:6379"
|
||||
environment:
|
||||
TZ: Asia/Shanghai
|
||||
networks:
|
||||
- nightingale
|
||||
|
||||
nightingale:
|
||||
image: flashcatcloud/nightingale:8.5.0
|
||||
container_name: nightingale
|
||||
hostname: nightingale
|
||||
restart: always
|
||||
environment:
|
||||
GIN_MODE: release
|
||||
TZ: Asia/Shanghai
|
||||
WAIT_HOSTS: redis:6379
|
||||
volumes:
|
||||
- ./n9eetc_pg:/app/etc
|
||||
ports:
|
||||
- "17000:17000"
|
||||
- "20090:20090"
|
||||
networks:
|
||||
- nightingale
|
||||
depends_on:
|
||||
- redis
|
||||
links:
|
||||
- redis:redis
|
||||
command: >
|
||||
sh -c "/app/n9e"
|
||||
Reference in New Issue
Block a user