diff --git a/configurations/pleroma-db/.gitkeep b/configurations/pleroma-db/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/configurations/pleroma-db/postgresql.conf b/configurations/pleroma-db/postgresql.conf new file mode 100644 index 0000000..d7c8c80 --- /dev/null +++ b/configurations/pleroma-db/postgresql.conf @@ -0,0 +1 @@ +listen_addresses = '127.0.0.1' diff --git a/configurations/pleroma/.gitkeep b/configurations/pleroma/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..5bbcc7b --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,34 @@ +version: '3.1' + +services: + pleroma: + image: git.pleroma.social:5050/pleroma/pleroma:latest + container_name: "pleroma" + hostname: "pleroma" + labels: + - "org.label-schema.group=pleroma" + restart: always + env_file: ./environments/pleroma/pleroma.env + depends_on: + - pleroma-db + ports: + - "127.0.0.1:4000:4000" + volumes: + - ./volumes/pleroma/config.exs:/var/lib/pleroma/config.exs + - ./volumes/pleroma/uploads:/var/lib/pleroma/uploads + + pleroma-db: + image: postgres:12.1-alpine + container_name: "pleroma-db" + hostname: "pleroma-db" + labels: + - "com.centurylinklabs.watchtower.enable=False" + - "org.label-schema.group=pleroma" + restart: always + env_file: ./environments/pleroma-db/postgres.env + ports: + - "127.0.0.1:5432:5432" + volumes: + - ./volumes/pleroma-db/pgdata:/var/lib/postgresql/data + - ./volumes/pleroma-db/pginit:/docker-entrypoint-initdb.d + diff --git a/environments/pleroma-db/.gitkeep b/environments/pleroma-db/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/environments/pleroma-db/postgres.env b/environments/pleroma-db/postgres.env new file mode 100644 index 0000000..85500d3 --- /dev/null +++ b/environments/pleroma-db/postgres.env @@ -0,0 +1,2 @@ +POSTGRES_PASSWORD=pleroma +POSTGRES_USER=pleroma diff --git a/environments/pleroma/.gitkeep b/environments/pleroma/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/environments/pleroma/pleroma.env b/environments/pleroma/pleroma.env new file mode 100644 index 0000000..8c6e153 --- /dev/null +++ b/environments/pleroma/pleroma.env @@ -0,0 +1,9 @@ +DB_USER=pleroma +DB_PASS=pleroma +DB_HOST=pleroma-db +DB_NAME=pleroma +INSTANCE_NAME=Pleroma +ADMIN_EMAIL=admin@ops.pleroma.social +NOTIFY_EMAIL=pleroma+admin@ops.pleroma.social +DOMAIN=ops.pleroma.social +PORT=4000 diff --git a/volumes/pleroma-db/.gitkeep b/volumes/pleroma-db/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/volumes/pleroma-db/pgdata/.gitkeep b/volumes/pleroma-db/pgdata/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/volumes/pleroma-db/pginit/.gitkeep b/volumes/pleroma-db/pginit/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/volumes/pleroma/.gitkeep b/volumes/pleroma/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/volumes/pleroma/uploads/.gitkeep b/volumes/pleroma/uploads/.gitkeep new file mode 100644 index 0000000..e69de29