Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
110 lines (104 loc) · 2.31 KB
/
Copy pathdocker-compose.yml
File metadata and controls
110 lines (104 loc) · 2.31 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
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
services:
backend:
image: "ghcr.io/fkmtime/fkmtime-backend:main"
container_name: fkmtime-backend
restart: unless-stopped
dns:
- 8.8.8.8
- 8.8.4.4
- 1.1.1.1
environment:
- DATABASE_URL=postgres://root:password@database:5432/fkm_time
- SOCKET_PATH=/app/sock/socket.sock
env_file:
- .env
volumes:
- sock:/app/sock
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:5000/health || exit 1"]
interval: 5s
timeout: 20s
retries: 50
depends_on:
database:
condition: service_healthy
database:
image: postgres:18-alpine
container_name: fkmtime-database
restart: unless-stopped
dns:
- 8.8.8.8
- 8.8.4.4
- 1.1.1.1
environment:
- POSTGRES_USER=root
- POSTGRES_PASSWORD=password
- POSTGRES_DB=fkm_time
volumes:
- database:/var/lib/postgresql
healthcheck:
test: ["CMD-SHELL", "pg_isready -d postgres"]
interval: 5s
timeout: 20s
retries: 50
nginx:
image: "ghcr.io/fkmtime/fkmtime-nginx:main"
restart: unless-stopped
dns:
- 8.8.8.8
- 8.8.4.4
- 1.1.1.1
container_name: fkmtime-nginx
ports:
- "80:80"
env_file:
- .env
depends_on:
backend:
condition: service_healthy
dozzle:
container_name: dozzle
image: amir20/dozzle:latest
restart: unless-stopped
dns:
- 8.8.8.8
- 8.8.4.4
- 1.1.1.1
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./dozzle:/data
ports:
- "8080:8080"
environment:
DOZZLE_BASE: /logs
DOZZLE_AUTH_PROVIDER: simple
micro_connector:
image: "ghcr.io/fkmtime/fkmtime-micro-connector:master"
container_name: micro-connector
network_mode: host
volumes:
- /run/dbus:/run/dbus:ro
- logs:/logs
- sock:/app/sock
environment:
- PORT=8081
- FIRMWARE_DIR=/app/firmware
- RUST_LOG=none,backend=debug
- DEVICE_LOGS=/logs
- SOCKET_PATH=/app/sock/socket.sock
env_file:
- .env
extra_hosts:
- host.docker.internal:host-gateway
restart: unless-stopped
dns:
- 8.8.8.8
- 8.8.4.4
- 1.1.1.1
depends_on:
backend:
condition: service_healthy
volumes:
database:
sock:
logs: