mirror of
https://github.com/pieartsy/PluralFlux.git
synced 2026-04-17 01:55:27 +10:00
more correct dockerfile and compose.yaml
This commit is contained in:
10
Dockerfile
Normal file
10
Dockerfile
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
FROM node:20-alpine AS builder
|
||||||
|
WORKDIR /app
|
||||||
|
COPY package*.json ./
|
||||||
|
RUN npm ci --omit=dev
|
||||||
|
|
||||||
|
FROM node:20-alpine
|
||||||
|
WORKDIR /app
|
||||||
|
COPY --from=builder /app/node_modules ./node_modules
|
||||||
|
COPY . .
|
||||||
|
CMD ["node", "src/bot.js"]
|
||||||
38
compose.yaml
38
compose.yaml
@@ -2,6 +2,9 @@ services:
|
|||||||
main:
|
main:
|
||||||
build: .
|
build: .
|
||||||
container_name: pluralflux
|
container_name: pluralflux
|
||||||
|
restart: unless-stopped
|
||||||
|
networks:
|
||||||
|
- pluralflux-net
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres:latest
|
image: postgres:latest
|
||||||
container_name: pluralflux-postgres
|
container_name: pluralflux-postgres
|
||||||
@@ -13,20 +16,27 @@ services:
|
|||||||
- pgdata:/var/lib/postgresql
|
- pgdata:/var/lib/postgresql
|
||||||
ports:
|
ports:
|
||||||
- "5432:5432"
|
- "5432:5432"
|
||||||
# pgadmin:
|
networks:
|
||||||
# image: dpage/pgadmin4:latest
|
- pluralflux-net
|
||||||
# ports:
|
pgadmin:
|
||||||
# - 5050:80
|
image: dpage/pgadmin4:latest
|
||||||
# environment:
|
container_name: pluralflux-pgadmin
|
||||||
# # Required by pgAdmin
|
ports:
|
||||||
# PGADMIN_DEFAULT_EMAIL: pieartsy@pm.me
|
- "5050:80"
|
||||||
# PGADMIN_DEFAULT_PASSWORD_FILE: /run/secrets/postgres_pwd
|
environment:
|
||||||
# # Don't require the user to login
|
PGADMIN_DEFAULT_EMAIL: code@asterfialla.com
|
||||||
# PGADMIN_CONFIG_SERVER_MODE: 'False'
|
PGADMIN_DEFAULT_PASSWORD_FILE: /run/secrets/postgres_pwd
|
||||||
# # Don't require a "master" password after logging in
|
PGADMIN_CONFIG_SERVER_MODE: 'False'
|
||||||
# PGADMIN_CONFIG_MASTER_PASSWORD_REQUIRED: 'False'
|
PGADMIN_CONFIG_MASTER_PASSWORD_REQUIRED: 'False'
|
||||||
# secrets:
|
secrets:
|
||||||
# - postgres_pwd
|
- postgres_pwd
|
||||||
|
depends_on:
|
||||||
|
- postgres
|
||||||
|
networks:
|
||||||
|
- pluralflux-net
|
||||||
|
|
||||||
|
networks:
|
||||||
|
pluralflux-net:
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
pgdata:
|
pgdata:
|
||||||
|
|||||||
Reference in New Issue
Block a user