From ff24be233ac7b10221142675b205b347b5588fd7 Mon Sep 17 00:00:00 2001 From: startxfr Date: Mon, 30 Nov 2015 03:25:20 +0100 Subject: reshape of postgresql --- Services/postgres/docker-compose.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Services/postgres/docker-compose.yml (limited to 'Services/postgres/docker-compose.yml') diff --git a/Services/postgres/docker-compose.yml b/Services/postgres/docker-compose.yml new file mode 100644 index 0000000..c4daa03 --- /dev/null +++ b/Services/postgres/docker-compose.yml @@ -0,0 +1,19 @@ +server: + build: ./ +# image: sx-postgresql + container_name: "sx-postgresql" + mem_limit: 1g + memswap_limit: 1g + cpu_shares: 8 + restart: "on-failure:2" + environment: + CONTAINER_TYPE: "service" + CONTAINER_SERVICE: "postgresql" + CONTAINER_INSTANCE: "sx-postgresql" + POSTGRESQL_ROOT_PASSWORD: "secretdemerde" + POSTGRESQL_USER: "user-test" + POSTGRESQL_PASSWORD: "pwd-test" + POSTGRESQL_DATABASE: "db_test" + volumes: + - "/tmp/container/logs/postgresql:/data/logs/postgresql" + - "/tmp/container/postgresql:/data/postgresql" \ No newline at end of file -- cgit v1.2.3