new pgsql data folder
This commit is contained in:
@@ -15,8 +15,8 @@ scale_out() {
|
|||||||
./timeout.sh -t $2 docker service update -q $1
|
./timeout.sh -t $2 docker service update -q $1
|
||||||
}
|
}
|
||||||
|
|
||||||
docker stack deploy -c dkregistry/docker-compose.yml $SERVICE
|
#docker stack deploy -c dkregistry/docker-compose.yml $SERVICE
|
||||||
docker service update -q services_registry
|
#docker service update -q services_registry
|
||||||
< ../password.txt docker login --username richard --password-stdin $DKREGISTRY
|
< ../password.txt docker login --username richard --password-stdin $DKREGISTRY
|
||||||
|
|
||||||
docker-compose \
|
docker-compose \
|
||||||
@@ -38,7 +38,7 @@ docker stack deploy --with-registry-auth -c $CONFIG $SERVICE
|
|||||||
# Cleanup
|
# Cleanup
|
||||||
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 &
|
||||||
|
|||||||
@@ -9,8 +9,8 @@ version: '3.4'
|
|||||||
services:
|
services:
|
||||||
postgres:
|
postgres:
|
||||||
volumes:
|
volumes:
|
||||||
- /opt/shared/postgres/data2:/data
|
- /opt/shared/postgres/data3:/data
|
||||||
image: library/postgres:12.2-alpine
|
image: library/postgres:12-alpine
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_PASSWORD: snqioxni1sw
|
POSTGRES_PASSWORD: snqioxni1sw
|
||||||
POSTGRES_USER: xaicorp_admin
|
POSTGRES_USER: xaicorp_admin
|
||||||
@@ -39,8 +39,8 @@ services:
|
|||||||
order: start-first
|
order: start-first
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
cpus: '0.5'
|
cpus: '1'
|
||||||
memory: 128M
|
memory: 256M
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
- prod_db
|
- prod_db
|
||||||
|
|||||||
Reference in New Issue
Block a user