-
Notifications
You must be signed in to change notification settings - Fork 381
/
docker-compose.yml
37 lines (37 loc) · 1.18 KB
/
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
32
33
34
35
36
37
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:
node-binance-trader:
# You cannot access the trader via a web interface.
command: yarn run trader
image: herve76/node-binance-trader:latest@sha256:4c4fbcba67644c32c3c48ae8d882d33aa1f1b31e1b4cfe8dfe8f182db4a22acf
volumes:
- ./docker/secrets/node-binance-trader/secrets.env:/srv/app/.env:ro
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:c4c7a1585974706b5f72b8ab595e47399b23b2e03d93bbf75c1b0904be1803dc
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.
{}