Skip to content

Commit ff80949

Browse files
committed
fix maybe
1 parent 02679f1 commit ff80949

File tree

5 files changed

+48
-37
lines changed

5 files changed

+48
-37
lines changed

maybe/.env.example

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
VOLUME_PATH=
1+
VOLUME_PATH=/mnt
22

3-
SECRET_KEY_BASE=
3+
TZ=America/Sao_Paulo
44

55
POSTGRES_DB=
66
POSTGRES_USER=
77
POSTGRES_PASSWORD=
88

9+
SECRET_KEY_BASE=
910
SYNTH_API_KEY=
1011

1112
SMTP_ADDRESS=
@@ -14,4 +15,4 @@ SMTP_USERNAME=
1415
SMTP_PASSWORD=
1516
SMTP_TLS_ENABLED=true
1617

17-
EMAIL_SENDER=
18+
EMAIL_SENDER=

maybe/docker-compose.yml

+25-22
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,33 @@ networks:
44
driver: bridge
55

66
services:
7+
maybe-postgres:
8+
container_name: maybe-postgres
9+
hostname: maybe-postgres
10+
image: postgres:16
11+
restart: unless-stopped
12+
volumes:
13+
- ${VOLUME_PATH}/postgres:/var/lib/postgresql/data
14+
environment:
15+
TZ: $TZ
16+
POSTGRES_DB: ${POSTGRES_DB}
17+
POSTGRES_USER: ${POSTGRES_USER}
18+
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
19+
ports:
20+
- 5433:5433
21+
healthcheck:
22+
test: [ "CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB" ]
23+
interval: 5s
24+
timeout: 5s
25+
retries: 5
26+
727
maybe:
828
container_name: maybe
29+
hostname: maybe
930
image: ghcr.io/maybe-finance/maybe:latest
10-
volumes:
11-
- ${VOLUME_PATH}/app-storage:/rails/storage
12-
ports:
13-
- 3000:3000
1431
restart: unless-stopped
32+
volumes:
33+
- ${VOLUME_PATH}/storage:/rails/storage
1534
environment:
1635
SELF_HOSTED: "true"
1736
RAILS_FORCE_SSL: "false"
@@ -30,24 +49,8 @@ services:
3049
SMTP_PASSWORD: ${SMTP_PASSWORD}
3150
SMTP_TLS_ENABLED: ${SMTP_TLS_ENABLED}
3251
EMAIL_SENDER: ${EMAIL_SENDER}
52+
ports:
53+
- 3000:3000
3354
depends_on:
3455
maybe-postgres:
3556
condition: service_healthy
36-
37-
maybe-postgres:
38-
container_name: maybe-postgres
39-
image: postgres:16
40-
hostname: maybe-postgres
41-
restart: unless-stopped
42-
volumes:
43-
- ${VOLUME_PATH}/postgres:/var/lib/postgresql/data
44-
environment:
45-
POSTGRES_DB: ${POSTGRES_DB}
46-
POSTGRES_USER: ${POSTGRES_USER}
47-
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
48-
healthcheck:
49-
test: [ "CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB" ]
50-
interval: 5s
51-
timeout: 5s
52-
retries: 5
53-

postgres/.env.example

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
TZ=
2-
PUID=
3-
PGID=
42
POSTGRES_USER=
53
POSTGRES_PASSWORD=
64
POSTGRES_DB=

postgres/docker-compose.yml

+18-9
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,25 @@
1-
version: "3.8"
1+
networks:
2+
default:
3+
name: postgres
4+
driver: bridge
25

36
services:
47
postgres:
58
container_name: postgres
9+
hostname: postgres
610
image: postgres:latest
11+
restart: unless-stopped
12+
volumes:
13+
- ${VOLUME_PATH}:/var/lib/postgresql/data
714
environment:
8-
- TZ=$TZ
9-
- PUID=$PUID
10-
- PGID=$PGID
11-
- POSTGRES_USER=${POSTGRES_USER}
12-
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
13-
- POSTGRES_DB=${POSTGRES_DB}
15+
TZ: $TZ
16+
POSTGRES_DB: ${POSTGRES_DB}
17+
POSTGRES_USER: ${POSTGRES_USER}
18+
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
1419
ports:
15-
- "5432:5432"
16-
restart: always
20+
- 5432:5432
21+
healthcheck:
22+
test: [ "CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB" ]
23+
interval: 5s
24+
timeout: 5s
25+
retries: 5

uptime-kuma/docker-compose.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ services:
1616
environment:
1717
- TZ=$TZ
1818
volumes:
19-
- ${VOLUME_PATH}/uptime-kuma/data:/app/data
19+
- ${VOLUME_PATH}/data:/app/data
2020
security_opt:
2121
- no-new-privileges:true
2222
networks:

0 commit comments

Comments
 (0)