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
|
||||
|
||||
scale_out services_registry 60
|
||||
#scale_out services_postgres 60 &
|
||||
scale_out services_postgres 60 &
|
||||
scale_out services_mysql 60 &
|
||||
scale_out services_memcached 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 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'
|
||||
services:
|
||||
postgres:
|
||||
volumes:
|
||||
- /opt/shared/postgres/data:/data
|
||||
image: postgres:10-alpine
|
||||
- /opt/shared/postgres/data2:/data
|
||||
image: library/postgres:12.2-alpine
|
||||
environment:
|
||||
POSTGRES_PASSWORD: snqioxni1sw
|
||||
POSTGRES_USER: xaicorp_admin
|
||||
@@ -40,3 +44,9 @@ services:
|
||||
|
||||
networks:
|
||||
- prod_db
|
||||
|
||||
|
||||
networks:
|
||||
prod_db:
|
||||
external:
|
||||
name: prod_db
|
||||
|
||||
Reference in New Issue
Block a user