forked from bitcoinvsalts/node-binance-trader
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
31 lines (31 loc) · 900 Bytes
/
docker-compose.yml
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.1-alpine@sha256:16af09e480c49226f8e7cd4d602ab27e59f434eb255d2b45bd0cfe1defb86fd7
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.
{}