-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
91 lines (86 loc) · 2.24 KB
/
docker-compose.yaml
File metadata and controls
91 lines (86 loc) · 2.24 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
services:
propay-db:
image: postgres:15-alpine
environment:
POSTGRES_DB: propay_development
POSTGRES_USER: propay
POSTGRES_PASSWORD: ${PROPAY_DB_PASSWORD:-propay_dev_password}
volumes:
- propay_db_data:/var/lib/postgresql/data
ports:
- "5433:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U propay -d propay_development"]
interval: 10s
timeout: 5s
retries: 5
start_period: 10s
networks:
- propay-internal
redis:
image: redis:7-alpine
ports:
- "6382:6379"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
networks:
- propay-internal
propay:
build: .
environment: &propay-env
DB_HOST: propay-db
DB_PORT: "5432"
DB_NAME: propay_development
DB_USER: propay
DB_PASSWORD: ${PROPAY_DB_PASSWORD:-propay_dev_password}
REDIS_URL: redis://redis:6379/1
INTERNAL_JWT_SECRET: ${INTERNAL_JWT_SECRET:-dev_secret_change_in_production}
PROPAY_OPENPIX_APP_ID: ${PROPAY_OPENPIX_APP_ID:-}
PROPAY_OPENPIX_SECRET: ${PROPAY_OPENPIX_SECRET:-}
PROPAY_PIX_KEY: ${PROPAY_PIX_KEY:-}
PROPAY_PROVIDER: ${PROPAY_PROVIDER:-openpix}
PROSTAFF_API_URL: ${PROSTAFF_API_URL:-http://api:3000}
MALLOC_ARENA_MAX: "2"
ports:
- "5555:5555"
depends_on:
propay-db:
condition: service_healthy
redis:
condition: service_healthy
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5555/v1/health"]
interval: 15s
timeout: 5s
retries: 5
start_period: 30s
networks:
- propay-internal
- coolify
propay-worker:
build: .
command: bundle exec sidekiq -C config/sidekiq.yml -r ./config/sidekiq_boot.rb
environment: *propay-env
depends_on:
propay-db:
condition: service_healthy
redis:
condition: service_healthy
healthcheck:
test: ["CMD-SHELL", "grep -q sidekiq /proc/1/cmdline || exit 1"]
interval: 15s
timeout: 5s
retries: 3
start_period: 30s
networks:
- propay-internal
volumes:
propay_db_data:
networks:
propay-internal:
driver: bridge
coolify:
external: true