-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yaml
45 lines (42 loc) · 943 Bytes
/
docker-compose.yaml
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
version: '0.1'
services:
db:
image: timescale/timescaledb:latest-pg10
container_name: marketbot-db
environment:
- DATABASE_URL=postgresql://postgres:postgres@localhost:5432/postgres
- POSTGRES_HOST_AUTH_METHOD=trust
volumes:
- db-data:/var/lib/postgresql/data
frontend:
image: node:alpine
container_name: marketbot-frontend
command: touch package.json && npm start
volumes:
- ./frontend:/app
ports:
- 8080:8080
depends_on:
- backend
backend:
image: jacksteussie/marketbot:latest
container_name: marketbot-backend
entrypoint: conda init bash; conda activate marketbot; python main.py
ports:
- 5002:5002
depends_on:
- db
proxy:
build: nginx
restart: always
ports:
- 80:80
depends_on:
- frontend
- backend
- db
volumes:
db-data:
driver: local
backend-data:
driver: local