-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
executable file
·69 lines (64 loc) · 1.74 KB
/
docker-compose.yml
File metadata and controls
executable file
·69 lines (64 loc) · 1.74 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#
# Crypto DOCKER-COMPOSE
# --------------------
#
# Here we configure the application stack
# that is deployed. It includes the database for the scraper,
# the scraper, and the main Crypto() application.
#
# i. Crypto App: a Python web-application
# that searches for cryptocurrencies and
# shows its last location.
#
# ii. Crypto Postgres: a PostgreSQL instance
# that stores the Bitcointalk.org scraped messages
# to be used in the Word2Vec model.
#
# iii. Crypto Scraper: A Python application that is able to scrape from
# Bitcointalk.org and save the messages to a database.
#
version: "2"
services:
crypto:
container_name: crypto
build: .
image: registry.dataproducts.team/skill-crypto-values:${VERSION}
restart: always
volumes:
- ./models:/models
ports:
- 8000:8000
env_file:
- .env
depends_on:
- database
networks:
- crypto
database:
container_name: scrape-database
build: ./skill-database/.
image: skill-crypto-values-database:${VERSION}
restart: always
environment:
- .env
volumes:
- ./database_data:/var/lib/postgresql/data
networks:
- crypto
ports:
- 9000:5432
scraper:
container_name: scraper
build: ./skill-scraper/.
image: registry.dataproducts.team/skill-crypto-values-scraper:${VERSION}
restart: always
volumes:
- ./skill-scraper/.:/skill-scraper/
env_file:
- .env
depends_on:
- database
networks:
- crypto
networks:
crypto: