Update dockerfile for standalone deployment (#23)

* Add files via upload

* Update Docker image for pluralflux service

* removing unnecessary network and container name definitions

---------

Co-authored-by: Aster Fialla <asterfialla@gmail.com>
This commit is contained in:
Laika Bozhko
2026-03-01 06:37:59 +11:00
committed by GitHub
parent df80eca0ec
commit 72b70f5175

View File

@@ -1,46 +1,27 @@
services: services:
main: main:
build: . image: engineering.sanya.gay/pluralflux/pluralflux
container_name: pluralflux container_name: pluralflux
restart: unless-stopped restart: unless-stopped
networks: env_file: "variables.env"
- pluralflux-net
postgres: postgres:
image: postgres:latest image: postgres:latest
container_name: pluralflux-postgres env_file: "variables.env"
environment:
POSTGRES_PASSWORD_FILE: /run/secrets/postgres_pwd
secrets:
- postgres_pwd
volumes: volumes:
- pgdata:/var/lib/postgresql - pgdata:/var/lib/postgresql
ports: - ./pgBackup:/mnt/pgBackup
- "5432:5432"
networks:
- pluralflux-net
pgadmin: pgadmin:
image: dpage/pgadmin4:latest image: dpage/pgadmin4:latest
container_name: pluralflux-pgadmin
ports: ports:
- "5050:80" - "5050:80"
environment: env_file: "variables.env"
PGADMIN_DEFAULT_EMAIL: code@asterfialla.com
PGADMIN_DEFAULT_PASSWORD_FILE: /run/secrets/postgres_pwd
PGADMIN_CONFIG_SERVER_MODE: 'False'
PGADMIN_CONFIG_MASTER_PASSWORD_REQUIRED: 'False'
secrets:
- postgres_pwd
depends_on: depends_on:
- postgres - postgres
networks: volumes:
- pluralflux-net - pgadmindata:/var/lib/pgadmin
#- ./pgBackup:/mnt/host
networks: # uncomment the above line if you plan to restore / backup dump files from PGAdmin UI
pluralflux-net:
volumes: volumes:
pgdata: pgdata:
pgadmindata:
secrets:
postgres_pwd:
file: ./secrets/postgres-password.txt