-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.example.yml
45 lines (41 loc) · 1.58 KB
/
docker-compose.example.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
version: '3.8'
services:
postgres:
image: postgres:latest
restart: always
environment:
POSTGRES_USER: shopscraper
POSTGRES_PASSWORD: SuperSecurePasswordShouldBePutHere
POSTGRES_DB: shopscraper
scraper:
image: ghcr.io/pppontusw/shopscraper:latest
environment:
SHOPSCRAPER_DB_CONNECTION_STRING: postgresql://shopscraper:SuperSecurePasswordShouldBePutHere@postgres:5432/shopscraper?sslmode=disable
depends_on:
- postgres
command: ["/wait-for-it.sh", "postgres:5432", "--", "./scraper", "--daemon", "--config-path", "./config/config.example.yaml", "--interval", "1h"]
volumes:
- ./config:/app/config
init: true
mailer:
image: ghcr.io/pppontusw/shopscraper:latest
environment:
SHOPSCRAPER_DB_CONNECTION_STRING: postgresql://shopscraper:SuperSecurePasswordShouldBePutHere@postgres:5432/shopscraper?sslmode=disable
SHOPSCRAPER_SMTP_PASSWORD: test
depends_on:
- postgres
command: ["/wait-for-it.sh", "postgres:5432", "--", "./mailer", "--daemon", "--config-path", "./config/config.example.yaml", "--interval", "5m"]
volumes:
- ./config:/app/config
api:
image: ghcr.io/pppontusw/shopscraper:latest
environment:
SHOPSCRAPER_DB_CONNECTION_STRING: postgresql://shopscraper:SuperSecurePasswordShouldBePutHere@postgres:5432/shopscraper?sslmode=disable
SHOPSCRAPER_API_KEY: SuperSecureAPIKeyShouldBePutHere
depends_on:
- postgres
command: ["/wait-for-it.sh", "postgres:5432", "--", "./api"]
ports:
- 8080:8080
volumes:
- ./config:/app/config