-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
53 lines (48 loc) · 1.23 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
version: "3"
services:
pg:
build:
context: .
dockerfile: docker/postgres/Dockerfile
image: asinatra/postgres
container_name: postgres
ports:
- 5432:5432
volumes:
- /mnt/databases/postgresql/crypto/data:/var/lib/postgresql/data
- ./docker/postgres/shared/sql:/docker-entrypoint-initdb.d/
- ./docker/postgres/shared/scripts:/usr/local/share/postgresql/scripts/
environment:
POSTGRES_PASSWORD: 123456
POSTGRES_DB: crypto-executor
POSTGRES_USER: executor
POSTGRES_PORT: 5432
crypto-datacollect:
build:
context: .
dockerfile: docker/datacollect/Dockerfile
image: asinatra/datacollect
depends_on:
- pg
volumes:
- ./logs/datacollect:/app/logs
environment:
host: postgres
pgadmin:
image: dpage/pgadmin4
ports:
- 8901:80
volumes:
- pgvol:/var/lib/pgadmin
- ./docker/pgadmin/servers.json:/pgadmin4/servers.json
depends_on:
- pg
environment:
- PGADMIN_DEFAULT_PASSWORD=test1234
volumes:
pgvol:
networks:
default:
external:
name: docker-core_crypto