You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

77 lines
2.0 KiB

version: '3'
volumes:
pleroma_uploads:
node_a_db:
node_b_db:
node_c_db:
services:
node_a_db:
image: postgres
environment:
POSTGRES_USER: pleroma
POSTGRES_DB: pleroma_dev
POSTGRES_PASSWORD: insecure_password
volumes:
- node_a_db:/var/lib/postgresql/data
node_a_web:
image: registry.gitlab.com/xyc0/pleroma_docker
environment:
POSTGRES_HOST: node_a_db
POSTGRES_USER: pleroma
POSTGRES_DB: pleroma_dev
POSTGRES_PASSWORD: insecure_password
volumes:
- pleroma_uploads:/pleroma/uploads
- ./node_a_config.exs:/pleroma/config/prod.secret.exs
depends_on:
- node_a_db
command: ["bash", "/pleroma/postgres_docker_wait.sh", "mix", "phx.server"]
node_b_db:
image: postgres
environment:
POSTGRES_USER: pleroma
POSTGRES_DB: pleroma_dev
POSTGRES_PASSWORD: insecure_password
volumes:
- node_b_db:/var/lib/postgresql/data
node_b_web:
image: registry.gitlab.com/xyc0/pleroma_docker
environment:
POSTGRES_HOST: node_b_db
POSTGRES_USER: pleroma
POSTGRES_DB: pleroma_dev
POSTGRES_PASSWORD: insecure_password
volumes:
- pleroma_uploads:/pleroma/uploads
- ./node_b_config.exs:/pleroma/config/prod.secret.exs
depends_on:
- node_b_db
command: ["bash", "/pleroma/postgres_docker_wait.sh", "mix", "phx.server"]
node_c_db:
image: postgres
environment:
POSTGRES_USER: pleroma
POSTGRES_DB: pleroma_dev
POSTGRES_PASSWORD: insecure_password
volumes:
- node_c_db:/var/lib/postgresql/data
node_c_web:
image: registry.gitlab.com/xyc0/pleroma_docker
environment:
POSTGRES_HOST: node_c_db
POSTGRES_USER: pleroma
POSTGRES_DB: pleroma_dev
POSTGRES_PASSWORD: insecure_password
volumes:
- pleroma_uploads:/pleroma/uploads
- ./node_b_config.exs:/pleroma/config/prod.secret.exs
depends_on:
- node_c_db
command: ["bash", "/pleroma/postgres_docker_wait.sh", "mix", "phx.server"]