forked from bitcoinvsalts/node-binance-trader
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
31 lines (31 loc) · 900 Bytes
/
docker-compose.yml
File metadata and controls
31 lines (31 loc) · 900 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
secrets:
postgres_db:
# The database's name.
file: ./docker/secrets/postgres/db.secret
postgres_password:
# The database's password.
file: ./docker/secrets/postgres/password.secret
postgres_user:
# The database's default user.
file: ./docker/secrets/postgres/user.secret
services:
postgres:
# This runs the database that everything else connects to
environment:
POSTGRES_DB_FILE: /run/secrets/postgres_db
POSTGRES_PASSWORD_FILE: /run/secrets/postgres_password
POSTGRES_USER_FILE: /run/secrets/postgres_user
image: postgres:13.2-alpine@sha256:59f48f15d037cc4ac87557cdb69fc9e5891b8a4b8d95254b7030dff561d6fd3a
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- "5432:5432"
secrets:
- postgres_db
- postgres_password
- postgres_user
version: "3.7"
volumes:
postgres_data:
# The database's data.
{}