gistfile1.txt
· 626 B · Text
原始文件
services:
postgres:
image: docker.io/postgres:17
container_name: PasswordPusher-DB
volumes:
- /volume1/docker/pwpush/db:/var/lib/postgresql/data
environment:
POSTGRES_USER: passwordpusher_user
POSTGRES_PASSWORD: passwordpusher_passwd
POSTGRES_DB: passwordpusher_db
passwordpusher:
image: docker.io/pglombardo/pwpush:latest
container_name: PasswordPusher
environment:
DATABASE_URL: postgres://passwordpusher_user:passwordpusher_passwd@postgres:5432/passwordpusher_db
ports:
- 5100:5100
depends_on:
- postgres
links:
- postgres:postgres
1 | services: |
2 | postgres: |
3 | image: docker.io/postgres:17 |
4 | container_name: PasswordPusher-DB |
5 | volumes: |
6 | - /volume1/docker/pwpush/db:/var/lib/postgresql/data |
7 | environment: |
8 | POSTGRES_USER: passwordpusher_user |
9 | POSTGRES_PASSWORD: passwordpusher_passwd |
10 | POSTGRES_DB: passwordpusher_db |
11 | |
12 | passwordpusher: |
13 | image: docker.io/pglombardo/pwpush:latest |
14 | container_name: PasswordPusher |
15 | environment: |
16 | DATABASE_URL: postgres://passwordpusher_user:passwordpusher_passwd@postgres:5432/passwordpusher_db |
17 | ports: |
18 | - 5100:5100 |
19 | depends_on: |
20 | - postgres |
21 | links: |
22 | - postgres:postgres |