forked from ecodomen/nsreg-watcher
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dev.yml
46 lines (40 loc) · 807 Bytes
/
dev.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
# Use postgres/example user/password credentials
version: '3.1'
services:
postgres:
image: postgres
restart: always
environment:
POSTGRES_PASSWORD: $PASSWORD_DB
POSTGRES_USER: $USERNAME_DB
POSTGRES_DB: $DATABASE_NAME
PGDATA: /data/postgres
ports:
- 5433:5432
volumes:
- postgres:/data/postgres
scrapy_telbot:
build:
context: .
dockerfile: ./compose/scrapy/Dockerfile
depends_on:
- postgres
links:
- postgres
env_file: .env
restart: always
django:
build:
context: .
dockerfile: ./compose/django/Dockerfile
depends_on:
- postgres
- scrapy_telbot
ports:
- 8000:8000
links:
- postgres
env_file: .env
restart: always
volumes:
postgres: