correct
This commit is contained in:
parent
8793113b65
commit
8a96286551
@ -16,7 +16,7 @@ COPY --from=deps /app/node_modules ./node_modules
|
|||||||
COPY . .
|
COPY . .
|
||||||
RUN pnpm prisma generate
|
RUN pnpm prisma generate
|
||||||
|
|
||||||
EXPOSE 3000
|
EXPOSE 80
|
||||||
|
|
||||||
# Astro SSG needs the DB at build time → build happens at startup after Postgres is ready
|
# 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"]
|
CMD ["sh", "-c", "pnpm prisma migrate deploy && pnpm build && node server.mjs"]
|
||||||
|
|||||||
@ -3,12 +3,14 @@ services:
|
|||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
|
expose:
|
||||||
|
- '80'
|
||||||
environment:
|
environment:
|
||||||
- DATABASE_URL
|
- DATABASE_URL
|
||||||
- STRIPE_SECRET_KEY
|
- STRIPE_SECRET_KEY
|
||||||
- STRIPE_WEBHOOK_SECRET
|
- STRIPE_WEBHOOK_SECRET
|
||||||
- DOMAIN
|
- DOMAIN
|
||||||
- PORT=3000
|
- PORT=80
|
||||||
- ADMIN_EMAIL
|
- ADMIN_EMAIL
|
||||||
- ADMIN_PASSWORD
|
- ADMIN_PASSWORD
|
||||||
- COOKIE_SECRET
|
- COOKIE_SECRET
|
||||||
@ -17,13 +19,6 @@ services:
|
|||||||
- coolify
|
- coolify
|
||||||
- default
|
- default
|
||||||
restart: unless-stopped
|
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:
|
networks:
|
||||||
coolify:
|
coolify:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user