-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
37 lines (37 loc) · 1.15 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
version: "3"
services:
postgres-db:
image: postgres:11.18-alpine
volumes:
- ./Database/create_table.sql:/docker-entrypoint-initdb.d/create_table.sql
environment:
- POSTGRES_PASSWORD=${DATABASE_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
ports:
- 5432:5432
scraper:
image: scrapy_gratka
volumes:
- ./gratkascrap:/gratkascrap
working_dir: /gratkascrap
command: bash -c "scrapy crawl gratka"
environment:
- PASSWORD=${DATABASE_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
network_mode: "host"
depends_on:
- postgres-db
restart: on-failure
jupyter:
image: notebook_gratka
command: bash -c "jupyter lab --ServerApp.token=${JUPYTER_TOKEN}"
environment:
- NB_USER=docker_worker
- JUPYTER_TOKEN=${JUPYTER_TOKEN}
- PASSWORD=${DATABASE_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
volumes:
- ./notebook:/home/jovyan/notebook
working_dir: /home/jovyan/notebook
ports:
- 8888:8888