correct
This commit is contained in:
parent
8793113b65
commit
8a96286551
@ -16,7 +16,7 @@ COPY --from=deps /app/node_modules ./node_modules
|
||||
COPY . .
|
||||
RUN pnpm prisma generate
|
||||
|
||||
EXPOSE 3000
|
||||
EXPOSE 80
|
||||
|
||||
# Astro SSG needs the DB at build time → build happens at startup after Postgres is ready
|
||||
CMD ["sh", "-c", "pnpm prisma migrate deploy && pnpm build && node server.mjs"]
|
||||
|
||||
@ -3,12 +3,14 @@ services:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
expose:
|
||||
- '80'
|
||||
environment:
|
||||
- DATABASE_URL
|
||||
- STRIPE_SECRET_KEY
|
||||
- STRIPE_WEBHOOK_SECRET
|
||||
- DOMAIN
|
||||
- PORT=3000
|
||||
- PORT=80
|
||||
- ADMIN_EMAIL
|
||||
- ADMIN_PASSWORD
|
||||
- COOKIE_SECRET
|
||||
@ -17,13 +19,6 @@ services:
|
||||
- coolify
|
||||
- default
|
||||
restart: unless-stopped
|
||||
labels:
|
||||
- traefik.enable=true
|
||||
- traefik.http.routers.rebours.rule=Host(`rebours.studio`)
|
||||
- traefik.http.routers.rebours.entrypoints=https
|
||||
- traefik.http.routers.rebours.tls=true
|
||||
- traefik.http.routers.rebours.tls.certresolver=letsencrypt
|
||||
- traefik.http.services.rebours.loadbalancer.server.port=3000
|
||||
|
||||
networks:
|
||||
coolify:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user