-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
76 lines (69 loc) · 1.89 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
version: '3.1'
services:
db:
image: postgres
restart: unless-stopped
volumes:
- ./database/main.sql:/docker-entrypoint-initdb.d/init.sql
environment:
POSTGRES_USER: nzqa
POSTGRES_PASSWORD: nzqa
POSTGRES_DB: nzqa
api_service:
build:
context: ./backend
restart: unless-stopped
volumes:
- ./backend/code:/code
environment:
POSTGRES_USER: nzqa
POSTGRES_PASSWORD: nzqa
POSTGRES_DB: nzqa
adminer:
image: adminer
restart: unless-stopped
ports:
- 8080:8080
caddy:
image: caddy:2.0.0-alpine
ports:
- 80:80
- 443:443
user: root
volumes:
- ./static:/static
- ./goaccess:/logs
- ./Caddyfile.dev:/etc/caddy/Caddyfile
- ./certs/config:/root/.config/caddy
- ./certs/local:/root/.local/share/caddy
- ./certs/data:/data
- ./certs/local-config:/config
scraper:
build:
context: ./scrape
depends_on:
- 'db'
restart: unless-stopped
volumes:
- ./scrape/code:/code
- ./scrape/output:/output
- ./scrape/cache:/cache
- ./scrape/content:/content
environment:
FORCE_SCRAPE: 0
HARD_CACHE: 1
POSTGRES_USER: nzqa
POSTGRES_PASSWORD: nzqa
POSTGRES_DB: nzqa
analytics:
image: allinurl/goaccess
depends_on:
- 'caddy'
restart: unless-stopped
volumes:
- ./static:/static
- ./goaccess/:/etc/goaccess
command: ['/etc/goaccess/access.log']
search:
image: getmeili/meilisearch:latest
restart: unless-stopped