use inline env var
This commit is contained in:
parent
aaec2aae08
commit
e781d0a118
@ -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:
|
||||||
|
@ -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:
|
||||||
|
@ -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"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user