Browse Source

commit insecure_password as not for production,

update ENV vars for new postgres script
master
JoYo 2 years ago
parent
commit
fdd5c2a0ab
  1. 15
      docker-compose.yaml
  2. 8
      node_a_config.exs
  3. 8
      node_b_config.exs
  4. 8
      node_c_config.exs

15
docker-compose.yaml

@ -12,7 +12,7 @@ services:
environment:
POSTGRES_USER: pleroma
POSTGRES_DB: pleroma_dev
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_PASSWORD: insecure_password
volumes:
- node_a_db:/var/lib/postgresql/data
@ -20,9 +20,10 @@ services:
build:
context: .
environment:
POSTGRES_HOST: node_a_db
POSTGRES_USER: pleroma
POSTGRES_DB: pleroma_dev
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_PASSWORD: insecure_password
volumes:
- pleroma_uploads:/pleroma/uploads
- ./node_a_config.exs:/pleroma/config/prod.secret.exs
@ -35,7 +36,7 @@ services:
environment:
POSTGRES_USER: pleroma
POSTGRES_DB: pleroma_dev
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_PASSWORD: insecure_password
volumes:
- node_b_db:/var/lib/postgresql/data
@ -43,9 +44,10 @@ services:
build:
context: .
environment:
POSTGRES_HOST: node_b_db
POSTGRES_USER: pleroma
POSTGRES_DB: pleroma_dev
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_PASSWORD: insecure_password
volumes:
- pleroma_uploads:/pleroma/uploads
- ./node_b_config.exs:/pleroma/config/prod.secret.exs
@ -58,7 +60,7 @@ services:
environment:
POSTGRES_USER: pleroma
POSTGRES_DB: pleroma_dev
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_PASSWORD: insecure_password
volumes:
- node_c_db:/var/lib/postgresql/data
@ -66,9 +68,10 @@ services:
build:
context: .
environment:
POSTGRES_HOST: node_c_db
POSTGRES_USER: pleroma
POSTGRES_DB: pleroma_dev
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_PASSWORD: insecure_password
volumes:
- pleroma_uploads:/pleroma/uploads
- ./node_b_config.exs:/pleroma/config/prod.secret.exs

8
node_a_config.exs

@ -0,0 +1,8 @@
use Mix.Config
config :pleroma, Pleroma.Repo,
adapter: Ecto.Adapters.Postgres,
username: "pleroma",
password: "insecure_password",
database: "pleroma_dev",
hostname: "node_a_db"

8
node_b_config.exs

@ -0,0 +1,8 @@
use Mix.Config
config :pleroma, Pleroma.Repo,
adapter: Ecto.Adapters.Postgres,
username: "pleroma",
password: "insecure_password",
database: "pleroma_dev",
hostname: "node_b_db"

8
node_c_config.exs

@ -0,0 +1,8 @@
use Mix.Config
config :pleroma, Pleroma.Repo,
adapter: Ecto.Adapters.Postgres,
username: "pleroma",
password: "insecure_password",
database: "pleroma_dev",
hostname: "node_c_db"
Loading…
Cancel
Save