use inline env var
Some checks are pending
fp/our CI/CD / build (push) Waiting to run
ci / test (push) Waiting to run

This commit is contained in:
CJ_Clippy 2025-10-06 05:15:37 -08:00
parent aaec2aae08
commit e781d0a118
3 changed files with 6 additions and 6 deletions

View File

@ -50,6 +50,12 @@
name: our-postgres name: our-postgres
compose: compose:
- /etc/futureporn/our/compose.db.yaml - /etc/futureporn/our/compose.db.yaml
- services:
postgres:
environment:
POSTGRES_USER: "{{ lookup('dotenv', 'POSTGRES_USER', file='../../../../.env.production') }}"
POSTGRES_PASSWORD: "{{ lookup('dotenv', 'POSTGRES_PASSWORD', file='../../../../.env.production') }}"
POSTGRES_DB: "{{ lookup('dotenv', 'POSTGRES_DB', file='../../../../.env.production') }}"
- name: Deploy stack to green - name: Deploy stack to green
community.docker.docker_stack: community.docker.docker_stack:

View File

@ -1,7 +1,6 @@
services: services:
# pgadmin: # pgadmin:
# image: dpage/pgadmin4:latest # image: dpage/pgadmin4:latest
# env_file: ./.env
# ports: # ports:
# - target: 5050 # - target: 5050
# published: 8095 # published: 8095
@ -10,7 +9,6 @@ services:
postgres: postgres:
image: postgres:17 image: postgres:17
env_file: ./.env
volumes: volumes:
- pgdata:/var/lib/postgresql/data - pgdata:/var/lib/postgresql/data
healthcheck: healthcheck:

View File

@ -1,8 +1,6 @@
services: services:
server: server:
image: gitea.futureporn.net/futureporn/our:latest image: gitea.futureporn.net/futureporn/our:latest
depends_on:
- postgres
init: true init: true
command: > command: >
sh -c "npx prisma migrate deploy && npm run start:server" sh -c "npx prisma migrate deploy && npm run start:server"
@ -12,8 +10,6 @@ services:
worker: worker:
image: gitea.futureporn.net/futureporn/our:latest image: gitea.futureporn.net/futureporn/our:latest
depends_on:
- postgres
init: true init: true
entrypoint: > entrypoint: >
sh -c "npm run start:worker" sh -c "npm run start:worker"