-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
45 lines (42 loc) · 1.08 KB
/
Copy pathdocker-compose.yml
File metadata and controls
45 lines (42 loc) · 1.08 KB
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.7"
volumes:
stats_data:
services:
db:
image: postgres:14.1-alpine
container_name: postgres
ports:
- "5432:5432"
volumes:
- ./pg_data:/usr/src/postgresql/data
environment:
POSTGRES_DB: ssstatistics
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
PGDATA: /usr/src/postgresql/data
restart: always
projecttau:
build: .
container_name: projecttau
ports:
- "8080:8080"
depends_on:
- db
environment:
BASE_URL: ""
POSTGRES_HOST: db
POSTGRES_PORT: 5432
POSTGRES_DB: ssstatistics
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
volumes:
- stats_data:/usr/src/taustats/web/static/data
restart: always
online_stats_worker:
build: .
container_name: online_stats_worker
volumes:
- ./config:/usr/src/taustats/config
- stats_data:/usr/src/taustats/web/static/data
command: /bin/sh -c "echo '0 */2 * * * cd /usr/src/taustats && /usr/local/bin/online_stats' >> /etc/crontabs/root && crond -f -l 2"
restart: always