use inline env var
This commit is contained in:
parent
aaec2aae08
commit
e781d0a118
@ -50,6 +50,12 @@
|
||||
name: our-postgres
|
||||
compose:
|
||||
- /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
|
||||
community.docker.docker_stack:
|
||||
|
@ -1,7 +1,6 @@
|
||||
services:
|
||||
# pgadmin:
|
||||
# image: dpage/pgadmin4:latest
|
||||
# env_file: ./.env
|
||||
# ports:
|
||||
# - target: 5050
|
||||
# published: 8095
|
||||
@ -10,7 +9,6 @@ services:
|
||||
|
||||
postgres:
|
||||
image: postgres:17
|
||||
env_file: ./.env
|
||||
volumes:
|
||||
- pgdata:/var/lib/postgresql/data
|
||||
healthcheck:
|
||||
|
@ -1,8 +1,6 @@
|
||||
services:
|
||||
server:
|
||||
image: gitea.futureporn.net/futureporn/our:latest
|
||||
depends_on:
|
||||
- postgres
|
||||
init: true
|
||||
command: >
|
||||
sh -c "npx prisma migrate deploy && npm run start:server"
|
||||
@ -12,8 +10,6 @@ services:
|
||||
|
||||
worker:
|
||||
image: gitea.futureporn.net/futureporn/our:latest
|
||||
depends_on:
|
||||
- postgres
|
||||
init: true
|
||||
entrypoint: >
|
||||
sh -c "npm run start:worker"
|
||||
|
Loading…
x
Reference in New Issue
Block a user