-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.yml
More file actions
executable file
·57 lines (50 loc) · 1009 Bytes
/
Copy pathmain.yml
File metadata and controls
executable file
·57 lines (50 loc) · 1009 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
54
55
56
57
version: '3.6'
volumes:
pg_project:
services:
pg_db:
container_name: postgres
image: postgres
restart: always
environment:
- POSTGRES_PASSWORD=12345
- POSTGRES_USER=postgres
- POSTGRES_DB=newspaper
volumes:
- pg_project:/var/lib/postgresql/data
- /tmp/:/tmp/
networks:
network:
ipv4_address: 10.5.0.5
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d newspaper"]
interval: 15s
timeout: 10s
retries: 7
start_period: 12s
deploy:
resources:
limits:
cpus: '1'
memory: 500MB
scrapper:
container_name: scrapper
build: .
image: scrapper
environment:
POSTGRES_HOST: pg_db
tty: true
volumes:
- /tmp/:/tmp/
depends_on:
- pg_db
networks:
network:
ipv4_address: 10.5.0.7
networks:
network:
driver: bridge
ipam:
config:
- subnet: 10.5.0.0/16
gateway: 10.5.0.1