Commit b8a2fd12 authored by Nacho's avatar Nacho
Browse files

Separa wal en un volume

parent 47ff5a88
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -8,5 +8,7 @@ services:
      - 5432:5432

volumes:
  postgres-vol:
    name: postgres-vol
  postgres-data-vol:
    name: postgres-data-vol
  postgres-wal-vol:
    name: postgres-wal-vol
 No newline at end of file
+9 −2
Original line number Diff line number Diff line
@@ -15,8 +15,15 @@ services:
        max_attempts: 3

volumes:
  postgres-vol:
    name: "postgres-vol"
  postgres-data-vol:
    name: "postgres-data-vol"
    driver: "cloudstor:aws"
    driver_opts:
      backing: relocatable
      size: 10
      ebstype: gp2
  postgres-wal-vol:
    name: "postgres-wal-vol"
    driver: "cloudstor:aws"
    driver_opts:
      backing: relocatable
+3 −1
Original line number Diff line number Diff line
@@ -7,12 +7,14 @@ services:
      - ROLE=master
      - POSTGRES_PASSWORD
      - PGDATA=/var/lib/postgresql/data/db-files/
      - POSTGRES_INITDB_WALDIR=/var/lib/data/postgresql/wal
    networks:
      postgres-net:
        aliases:
          - db
    volumes:
      - postgres-vol:/var/lib/postgresql/data
      - postgres-data-vol:/var/lib/postgresql/data
      - postgres-wal-vol:/var/lib/data/postgresql/wal

networks:
  postgres-net: