-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
53 lines (50 loc) · 1.17 KB
/
docker-compose.yml
File metadata and controls
53 lines (50 loc) · 1.17 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
x-common-env: &common-env
RAILS_ENV: production
SECRET_KEY_BASE: 123456
SFBUFF_DATABASE_HOST: db
SFBUFF_DATABASE_USERNAME: sfbuff
SFBUFF_DATABASE_PASSWORD: sfbuff
services:
web:
# image: docker.io/alanoliveira89/sfbuff:latest
build: .
environment:
<<: *common-env
ports:
- "3000:3000"
depends_on:
db:
condition: service_healthy
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000/up"]
interval: 60s
timeout: 10s
retries: 5
start_period: 20s
worker:
# image: docker.io/alanoliveira89/sfbuff:latest
build: .
environment:
<<: *common-env
SFBUFF_BUCKLER_EMAIL:
SFBUFF_BUCKLER_PASSWORD:
SFBUFF_DEFAULT_USER_AGENT:
command: bin/jobs
depends_on:
web:
condition: service_healthy
post_start:
- command: "bin/thor buckler_api:reload_credentials"
db:
image: postgres:16.2-alpine
environment:
POSTGRES_PASSWORD: sfbuff
POSTGRES_USER: sfbuff
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
interval: 60s
timeout: 10s
retries: 5
start_period: 10s