forked from horilla-opensource/horilla
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
54 lines (52 loc) · 1.4 KB
/
docker-compose.yaml
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
version: '3.8'
services:
server:
build:
context: .
dockerfile: Dockerfile
# image: ametnes/horilla:1.2.1-20241212
ports:
- 8000:8000
restart: unless-stopped
environment:
HORILLA_ADMIN_PHONE: 12343
HORILLA_ADMIN_EMAIL: [email protected]
HORILLA_ADMIN_USER: [email protected]
HORILLA_ADMIN_PASSWORD: password
HORILLA_ADMIN_FIRST_NAME: Admin
HORILLA_ADMIN_LAST_NAME: Admin
HORILLA_NUM_WORKERS: "3"
HORILLA_TIMEOUT: "120"
DATABASE_URL: "postgres://postgres:postgres@db:5432/horilla"
HORILLA_EMAIL_HOST: 'smtp.gmail.com'
HORILLA_EMAIL_PORT: "587"
HORILLA_EMAIL_HOST_USER: "user"
HORILLA_EMAIL_HOST_PASSWORD: 'BlPlvGo'
HORILLA_EMAIL_USE_TLS: "true"
LOG_LEVEL: DEBUG
command: ./entrypoint.sh
volumes:
- ./horilla:/app/horilla
depends_on:
db:
condition: service_healthy
db:
image: postgres:16-bullseye
environment:
POSTGRES_DB: horilla
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_INITDB_ARGS: "--auth-host=scram-sha-256"
PGDATA: /var/lib/postgresql/data/pgdata
ports:
- 5432:5432
restart: unless-stopped
volumes:
- horilla-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD", "pg_isready", "-U", "postgres"]
interval: 10s
timeout: 5s
retries: 5
volumes:
horilla-data: