-
Notifications
You must be signed in to change notification settings - Fork 46
/
docker-compose.yml
55 lines (55 loc) · 1.21 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
54
55
services:
monolith:
build:
context: .
dockerfile: pro.Dockerfile
args:
ADMIN_PASSWORD: opentrader
GITHUB_TOKEN: "github_classic_token"
ports:
- "5000:5000"
volumes:
- ./opentrader_data:/app/data
environment:
DATABASE_URL: file:/app/data/dev.db
ADMIN_PASSWORD: opentrader
PORT: 5000
# depends_on:
# - database
# platform: linux/amd64 # works slow when building on Mac M1
processor:
build:
context: .
dockerfile: apps/processor/Dockerfile
ports:
- "4000:4000"
environment:
ADMIN_PASSWORD: opentrader
# depends_on:
# - database
frontend:
build:
context: .
dockerfile: apps/frontend/Dockerfile
args:
ADMIN_PASSWORD: opentrader
network: host
ports:
- "3000:3000"
environment:
ADMIN_PASSWORD: opentrader
# depends_on:
# - database
database:
image: postgres:latest
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
PGDATA: /var/lib/postgresql/data/pgdata
volumes:
- postgres-db:/var/lib/postgresql/data
ports:
- "5432:5432"
volumes:
postgres-db: