Compare commits
No commits in common. "local-deploy" and "main" have entirely different histories.
local-depl
...
main
6
build.sh
6
build.sh
|
@ -1,4 +1,4 @@
|
||||||
docker build . -t rose-ash-ghost:$1
|
docker build . -t rose-ash-ghost
|
||||||
docker build mysql -t rose-ash-mysql:$1
|
docker build mysql -t rose-ash-mysql
|
||||||
docker build invite-token/app -f invite-token/app/Dockerfile -t invite-token:$1
|
docker build invite-token/app -f invite-token/app/Dockerfile -t invite-token
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"url": "http://localhost:3001",
|
"url": "http://localhost:2368",
|
||||||
"server": {
|
"server": {
|
||||||
"port": 3001,
|
"port": 2368,
|
||||||
"host": "::"
|
"host": "::"
|
||||||
},
|
},
|
||||||
"mail": {
|
"mail": {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"url": "$URL",
|
"url": "http://localhost:2368",
|
||||||
"server": {
|
"server": {
|
||||||
"port": $PORT,
|
"port": 2368,
|
||||||
"host": "::"
|
"host": "::"
|
||||||
},
|
},
|
||||||
"mail": $EMAIL,
|
"mail": $EMAIL,
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
docker stack rm rose-ash
|
|
||||||
. ./.env
|
|
||||||
for i in 1 2 3 4 5 6 7 8 9 10; do sleep 5 && docker stack deploy -c docker-compose-localhost.yml rose-ash && break ; done
|
|
|
@ -1,4 +1,5 @@
|
||||||
export VERSION=$1
|
docker stack rm rose-ash
|
||||||
export NODE=$3
|
. ./.env
|
||||||
docker stack rm $2
|
echo $CERTBOT_EMAIL
|
||||||
for i in 1 2 3 4 5 6 7 8 9 10; do sleep 5 && docker stack deploy -c docker-compose.yml $2 --with-registry-auth && break ; done
|
echo $DOMAIN
|
||||||
|
for i in 1 2 3 4 5 6 7 8 9 10; do sleep 5 && docker stack deploy -c docker-compose.yml rose-ash && break ; done
|
||||||
|
|
|
@ -1,75 +0,0 @@
|
||||||
version: "3.3"
|
|
||||||
services:
|
|
||||||
ghost:
|
|
||||||
image: rose-ash-ghost:latest
|
|
||||||
env_file:
|
|
||||||
- ./.env
|
|
||||||
volumes:
|
|
||||||
- ghost-content:/var/lib/ghost/content
|
|
||||||
- ./settings:/var/lib/ghost/content/settings
|
|
||||||
- ./themes/:/var/lib/ghost/content/themes
|
|
||||||
networks:
|
|
||||||
- appnet
|
|
||||||
- externalnet
|
|
||||||
secrets:
|
|
||||||
- email
|
|
||||||
- db-password
|
|
||||||
#ports:
|
|
||||||
# - 2368:2368
|
|
||||||
deploy:
|
|
||||||
placement:
|
|
||||||
constraints: [node.labels.node == production ]
|
|
||||||
|
|
||||||
invite-token:
|
|
||||||
image: invite-token
|
|
||||||
environment:
|
|
||||||
MYSQL_USER: ghost
|
|
||||||
MYSQL_PASSWORD: ghostdbpass
|
|
||||||
MYSQL_DATABASE: ghostdb
|
|
||||||
MYSQL_HOST: db
|
|
||||||
PORT: 3002
|
|
||||||
networks:
|
|
||||||
- appnet
|
|
||||||
- externalnet
|
|
||||||
deploy:
|
|
||||||
placement:
|
|
||||||
constraints: [node.labels.node == production ]
|
|
||||||
ports:
|
|
||||||
# donot expose in production!!!
|
|
||||||
- 3010:3002
|
|
||||||
|
|
||||||
db:
|
|
||||||
image: rose-ash-mysql:latest
|
|
||||||
environment:
|
|
||||||
MYSQL_ROOT_PASSWORD: mysqlrootpass
|
|
||||||
MYSQL_USER: ghost
|
|
||||||
MYSQL_PASSWORD: ghostdbpass
|
|
||||||
MYSQL_DATABASE: ghostdb
|
|
||||||
volumes:
|
|
||||||
- ghost-mysql-db:/var/lib/mysql
|
|
||||||
networks:
|
|
||||||
- appnet
|
|
||||||
secrets:
|
|
||||||
- db-password
|
|
||||||
- db-root-password
|
|
||||||
deploy:
|
|
||||||
placement:
|
|
||||||
constraints: [node.labels.node == production ]
|
|
||||||
volumes:
|
|
||||||
ghost-content:
|
|
||||||
ghost-config:
|
|
||||||
ghost-mysql-db:
|
|
||||||
networks:
|
|
||||||
appnet:
|
|
||||||
driver: overlay
|
|
||||||
externalnet:
|
|
||||||
driver: overlay
|
|
||||||
external: true
|
|
||||||
secrets:
|
|
||||||
email:
|
|
||||||
file: ./.email
|
|
||||||
db-password:
|
|
||||||
file: ./.db-password
|
|
||||||
db-root-password:
|
|
||||||
file: ./.db-root-password
|
|
||||||
|
|
|
@ -1,9 +1,10 @@
|
||||||
version: "3.3"
|
version: "3.3"
|
||||||
services:
|
services:
|
||||||
ghost:
|
ghost:
|
||||||
image: registry.rose-ash.com/rose-ash-ghost:${VERSION}
|
image: rose-ash-ghost:latest
|
||||||
env_file:
|
environment:
|
||||||
- ./.env
|
url: https://rose-ash.com/
|
||||||
|
NODE_ENV: production
|
||||||
volumes:
|
volumes:
|
||||||
- ghost-content:/var/lib/ghost/content
|
- ghost-content:/var/lib/ghost/content
|
||||||
- ./settings:/var/lib/ghost/content/settings
|
- ./settings:/var/lib/ghost/content/settings
|
||||||
|
@ -14,14 +15,12 @@ services:
|
||||||
secrets:
|
secrets:
|
||||||
- email
|
- email
|
||||||
- db-password
|
- db-password
|
||||||
#ports:
|
|
||||||
# - 2368:2368
|
|
||||||
deploy:
|
deploy:
|
||||||
placement:
|
placement:
|
||||||
constraints: [node.labels.node == $NODE ]
|
constraints: [node.labels.node == production ]
|
||||||
|
|
||||||
invite-token:
|
invite-token:
|
||||||
image: registry.rose-ash.com/invite-token:${VERSION}
|
image: invite-token
|
||||||
environment:
|
environment:
|
||||||
MYSQL_USER: ghost
|
MYSQL_USER: ghost
|
||||||
MYSQL_PASSWORD: ghostdbpass
|
MYSQL_PASSWORD: ghostdbpass
|
||||||
|
@ -33,13 +32,10 @@ services:
|
||||||
- externalnet
|
- externalnet
|
||||||
deploy:
|
deploy:
|
||||||
placement:
|
placement:
|
||||||
constraints: [node.labels.node == $NODE ]
|
constraints: [node.labels.node == production ]
|
||||||
#ports:
|
|
||||||
# donot expose in production!!!
|
|
||||||
#- 3010:3002
|
|
||||||
|
|
||||||
db:
|
db:
|
||||||
image: registry.rose-ash.com/rose-ash-mysql:${VERSION}
|
image: rose-ash-mysql:latest
|
||||||
environment:
|
environment:
|
||||||
MYSQL_ROOT_PASSWORD: mysqlrootpass
|
MYSQL_ROOT_PASSWORD: mysqlrootpass
|
||||||
MYSQL_USER: ghost
|
MYSQL_USER: ghost
|
||||||
|
@ -54,7 +50,7 @@ services:
|
||||||
- db-root-password
|
- db-root-password
|
||||||
deploy:
|
deploy:
|
||||||
placement:
|
placement:
|
||||||
constraints: [node.labels.node == $NODE ]
|
constraints: [node.labels.node == production ]
|
||||||
volumes:
|
volumes:
|
||||||
ghost-content:
|
ghost-content:
|
||||||
ghost-config:
|
ghost-config:
|
||||||
|
|
Loading…
Reference in New Issue