-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
53 lines (43 loc) · 910 Bytes
/
docker-compose.yaml
File metadata and controls
53 lines (43 loc) · 910 Bytes
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.7'
services:
mongodb:
image: mongo
container_name: TGDataset
restart: always
networks:
- app-tier
ports:
- "27017:27017"
environment:
MONGO_INITDB_DATABASE: Telegram_test
python_app:
build: .
depends_on:
- mongodb
networks:
- app-tier
ports:
- "8000:8000"
environment:
MONGO_INITDB_DATABASE: Telegram_test
MONGO_DB_URL : 'mongodb://TGDataset'
#volumes:
# - /public_db:/app/public_db
build_db:
build:
context: ./
dockerfile: python_create_db.Dockerfile
depends_on:
- mongodb
networks:
- app-tier
ports:
- "8000:8000"
environment:
MONGO_INITDB_DATABASE: Telegram_test
MONGO_DB_URL : 'mongodb://TGDataset'
volumes:
- ./public_db:/app/public_db
networks:
app-tier:
driver: bridge