update postgres server to 12.2-alpine
This commit is contained in:
@@ -39,7 +39,7 @@ docker stack deploy --with-registry-auth -c $CONFIG $SERVICE
|
|||||||
rm $CONFIG
|
rm $CONFIG
|
||||||
|
|
||||||
scale_out services_registry 60
|
scale_out services_registry 60
|
||||||
#scale_out services_postgres 60 &
|
scale_out services_postgres 60 &
|
||||||
scale_out services_mysql 60 &
|
scale_out services_mysql 60 &
|
||||||
scale_out services_memcached 60 &
|
scale_out services_memcached 60 &
|
||||||
scale_out services_redis 60 &
|
scale_out services_redis 60 &
|
||||||
|
|||||||
@@ -1,12 +1,16 @@
|
|||||||
# DOCKER_HOST=dkhost:2376 docker stack deploy -c docker-compose.yml services
|
# DOCKER_HOST=dkhost:2376 docker stack deploy -c docker-compose.yml services
|
||||||
# DOCKER_HOST=dkhost:2376 docker service ps services_postgres
|
# DOCKER_HOST=dkhost:2376 docker service ps services_postgres
|
||||||
|
|
||||||
|
# CREATE DATABASE yourdbname;
|
||||||
|
# CREATE USER youruser WITH ENCRYPTED PASSWORD 'yourpass';
|
||||||
|
# GRANT ALL PRIVILEGES ON DATABASE yourdbname TO youruser;
|
||||||
|
|
||||||
version: '3.4'
|
version: '3.4'
|
||||||
services:
|
services:
|
||||||
postgres:
|
postgres:
|
||||||
volumes:
|
volumes:
|
||||||
- /opt/shared/postgres/data:/data
|
- /opt/shared/postgres/data2:/data
|
||||||
image: postgres:10-alpine
|
image: library/postgres:12.2-alpine
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_PASSWORD: snqioxni1sw
|
POSTGRES_PASSWORD: snqioxni1sw
|
||||||
POSTGRES_USER: xaicorp_admin
|
POSTGRES_USER: xaicorp_admin
|
||||||
@@ -40,3 +44,9 @@ services:
|
|||||||
|
|
||||||
networks:
|
networks:
|
||||||
- prod_db
|
- prod_db
|
||||||
|
|
||||||
|
|
||||||
|
networks:
|
||||||
|
prod_db:
|
||||||
|
external:
|
||||||
|
name: prod_db
|
||||||
|
|||||||
Reference in New Issue
Block a user