Skip to content

Commit 37c041e

Browse files
committed
working with railpack
1 parent 1adc829 commit 37c041e

File tree

7 files changed

+16
-17833
lines changed

7 files changed

+16
-17833
lines changed

samples/repo-base/Dockerfile

Lines changed: 0 additions & 76 deletions
This file was deleted.

samples/repo-base/compose.dev.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ services:
88
GOOGLE_GENERATIVE_AI_API_KEY: xxx
99
GITHUB_TOKEN: xxx
1010
volumes:
11-
- ./next-app/src:/app/src
12-
- ./next-app/public:/app/public
11+
- ./src:/app/src
12+
- ./public:/app/public
1313
restart: always
1414
ports:
1515
- 3000:3000

samples/repo-base/compose.yaml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,21 @@ services:
33
build:
44
context: .
55
environment:
6-
- DB_URL=postgres://postgres:${POSTGRES_PASSWORD}@database123defang:5432/postgres?sslmode=false
6+
- DB_URL=postgres://postgres:${POSTGRES_PASSWORD}@database:5432/postgres
7+
- DB_SSL=true
78
- GOOGLE_GENERATIVE_AI_API_KEY
89
- GITHUB_TOKEN
910
restart: unless-stopped
1011
ports:
1112
- mode: ingress
12-
target: 8080
13-
published: 8080
13+
target: 3000
14+
published: 3000
1415
healthcheck:
15-
test: ["CMD", "curl", "-f", "http://localhost:8080"]
16+
test: ["CMD", "curl", "-f", "http://localhost:3000"]
1617
depends_on:
17-
- database123defang
18+
- database
1819

19-
database123defang:
20+
database:
2021
image: postgres:16
2122
x-defang-postgres: true
2223
restart: always

0 commit comments

Comments
 (0)