First step towards exciting new setup
Some checks failed
continuous-integration/drone Build is failing

This commit is contained in:
3wc 2024-05-17 14:15:21 -03:00
parent db3ea1828e
commit 092ad66d1c
3 changed files with 14 additions and 13 deletions

View File

@ -40,6 +40,7 @@ steps:
SECRET_PAYLOAD_SECRET_VERSION: v1
SECRET_TOKEN_VERSION: v1
SECRET_MONGO_PASSWORD_VERSION: v1
NGINX_CONF_VERSION: v1
depends_on:
- publish astro container
- publish payload container

View File

@ -14,9 +14,3 @@ ENV NODE_ENV=production
WORKDIR /build
COPY --from=base /base .
ADD "https://random-uuid.deno.dev" skipcache
RUN yarn build
FROM nginx:stable AS prod
COPY nginx.conf /etc/nginx/nginx.conf
COPY --from=build /build/dist /usr/share/nginx/html
EXPOSE 3000

View File

@ -3,15 +3,14 @@ version: "3.8"
services:
app:
image: git.autonomic.zone/autonomic-cooperative/justice-equity-technology-astro:latest
environment:
- PAYLOAD_URL=${STACK_NAME}_payload
secrets:
- mongo_password
- payload_secret
image: nginx:1.26.0
networks:
- proxy
- internal
volumes:
- html_content:/usr/share/nginx/html
configs:
- source: nginx_default_conf
target: /etc/nginx/conf.d/default.conf
deploy:
update_config:
failure_action: rollback
@ -87,3 +86,10 @@ secrets:
volumes:
mongo:
html_content:
configs:
nginx_conf:
name: ${STACK_NAME}_nginx_conf_${NGINX_CONF_VERSION}
file: astro/nginx.conf
template_driver: golang