48 lines
1.1 KiB
YAML
48 lines
1.1 KiB
YAML
#version: '3.9'
|
|
name: surl-docker-compose
|
|
networks:
|
|
surl-network:
|
|
external: false
|
|
services:
|
|
surl:
|
|
image: surl
|
|
restart: unless-stopped
|
|
depends_on:
|
|
- redis_forsurl
|
|
- postgres_forsurl
|
|
ports:
|
|
- "127.0.0.1:18888:18888"
|
|
networks:
|
|
- surl-network
|
|
environment:
|
|
PROTOCOL: http
|
|
HOST: localhost
|
|
PORT: 18888
|
|
DB_HOST: postgres_forsurl
|
|
DB_PORT: 5432
|
|
# 更改此处密码
|
|
DB_PASS: "PASSWORD4DB"
|
|
REDIS_HOST: redis_forsurl
|
|
# change this to your secret key or it will be generated
|
|
#SECRET_KEY: ne09xhakcvoi13$>":<[].
|
|
redis_forsurl:
|
|
image: redis:latest
|
|
restart: no
|
|
networks:
|
|
- surl-network
|
|
volumes:
|
|
- redis_forsurl_data:/data
|
|
postgres_forsurl:
|
|
image: postgres:latest
|
|
restart: no
|
|
networks:
|
|
- surl-network
|
|
environment:
|
|
# 更改此处密码
|
|
POSTGRES_PASSWORD: "PASSWORD4DB"
|
|
PGDATA: /var/lib/postgresql/data/pgdata
|
|
volumes:
|
|
- postgres_forsurl_data:/var/lib/postgresql/data
|
|
volumes:
|
|
redis_forsurl_data: {}
|
|
postgres_forsurl_data: {} |