Docker compose
This commit is contained in:
@ -2,54 +2,34 @@ services:
|
|||||||
rg-website-cms:
|
rg-website-cms:
|
||||||
build: .
|
build: .
|
||||||
container_name: rg-website-cms
|
container_name: rg-website-cms
|
||||||
restart: unless-stopped
|
|
||||||
ports:
|
ports:
|
||||||
- "${PORT}:1337"
|
- "1337:1337"
|
||||||
environment:
|
environment:
|
||||||
DATABASE_CLIENT: ${DATABASE_CLIENT}
|
DATABASE_CLIENT: postgres
|
||||||
DATABASE_HOST: ${DATABASE_HOST}
|
DATABASE_HOST: postgres
|
||||||
DATABASE_PORT: ${DATABASE_PORT}
|
DATABASE_PORT: 5432
|
||||||
DATABASE_NAME: ${DATABASE_NAME}
|
DATABASE_NAME: strapi
|
||||||
DATABASE_USERNAME: ${DATABASE_USERNAME}
|
DATABASE_USERNAME: strapi
|
||||||
DATABASE_PASSWORD: ${DATABASE_PASSWORD}
|
DATABASE_PASSWORD: strapi
|
||||||
DATABASE_SSL: ${DATABASE_SSL}
|
|
||||||
NODE_ENV: ${NODE_ENV}
|
|
||||||
HOST: ${HOST}
|
|
||||||
PORT: ${PORT}
|
|
||||||
APP_KEYS: ${APP_KEYS}
|
APP_KEYS: ${APP_KEYS}
|
||||||
API_TOKEN_SALT: ${API_TOKEN_SALT}
|
API_TOKEN_SALT: ${API_TOKEN_SALT}
|
||||||
ADMIN_JWT_SECRET: ${ADMIN_JWT_SECRET}
|
ADMIN_JWT_SECRET: ${ADMIN_JWT_SECRET}
|
||||||
JWT_SECRET: ${JWT_SECRET}
|
|
||||||
TRANSFER_TOKEN_SALT: ${TRANSFER_TOKEN_SALT}
|
TRANSFER_TOKEN_SALT: ${TRANSFER_TOKEN_SALT}
|
||||||
CORS_ORIGIN: ${CORS_ORIGIN}
|
|
||||||
volumes:
|
volumes:
|
||||||
- rg-website-cms_uploads:/app/public/uploads
|
- strapi:/srv/app
|
||||||
- rg-website-cms_data:/app/.tmp
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- postgres
|
- postgres
|
||||||
networks:
|
|
||||||
- rg-website-cms-network
|
|
||||||
|
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres:15-alpine
|
image: postgres:15-alpine
|
||||||
container_name: rg-website-cms-postgres
|
container_name: rg-website-cms-postgres
|
||||||
restart: unless-stopped
|
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_DB: ${DATABASE_NAME}
|
POSTGRES_DB: strapi
|
||||||
POSTGRES_USER: ${DATABASE_USERNAME}
|
POSTGRES_USER: strapi
|
||||||
POSTGRES_PASSWORD: ${DATABASE_PASSWORD}
|
POSTGRES_PASSWORD: strapi
|
||||||
volumes:
|
volumes:
|
||||||
- postgres_data:/var/lib/postgresql/data
|
- postgres_data:/var/lib/postgresql/data
|
||||||
ports:
|
|
||||||
- "${DATABASE_PORT}:5432"
|
|
||||||
networks:
|
|
||||||
- rg-website-cms-network
|
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
rg-website-cms_uploads:
|
strapi:
|
||||||
rg-website-cms_data:
|
|
||||||
postgres_data:
|
postgres_data:
|
||||||
|
|
||||||
networks:
|
|
||||||
rg-website-cms-network:
|
|
||||||
driver: bridge
|
|
||||||
|
49
package-lock.json
generated
49
package-lock.json
generated
@ -11,7 +11,7 @@
|
|||||||
"@strapi/plugin-cloud": "5.21.0",
|
"@strapi/plugin-cloud": "5.21.0",
|
||||||
"@strapi/plugin-users-permissions": "5.21.0",
|
"@strapi/plugin-users-permissions": "5.21.0",
|
||||||
"@strapi/strapi": "5.21.0",
|
"@strapi/strapi": "5.21.0",
|
||||||
"pg": "^8.16.3",
|
"pg": "^8.8.0",
|
||||||
"react": "^18.0.0",
|
"react": "^18.0.0",
|
||||||
"react-dom": "^18.0.0",
|
"react-dom": "^18.0.0",
|
||||||
"react-router-dom": "^6.0.0",
|
"react-router-dom": "^6.0.0",
|
||||||
@ -5954,6 +5954,14 @@
|
|||||||
"resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz",
|
"resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz",
|
||||||
"integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ=="
|
"integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ=="
|
||||||
},
|
},
|
||||||
|
"node_modules/buffer-writer": {
|
||||||
|
"version": "2.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/buffer-writer/-/buffer-writer-2.0.0.tgz",
|
||||||
|
"integrity": "sha512-a7ZpuTZU1TRtnwyCNW3I5dc0wWNC3VR9S++Ewyk2HHZdrO3CQJqSpd+95Us590V6AL7JqUAH2IwZ/398PmNFgw==",
|
||||||
|
"engines": {
|
||||||
|
"node": ">=4"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/buildmail": {
|
"node_modules/buildmail": {
|
||||||
"version": "3.10.0",
|
"version": "3.10.0",
|
||||||
"resolved": "https://registry.npmjs.org/buildmail/-/buildmail-3.10.0.tgz",
|
"resolved": "https://registry.npmjs.org/buildmail/-/buildmail-3.10.0.tgz",
|
||||||
@ -11674,6 +11682,11 @@
|
|||||||
"node": ">=6.0.0"
|
"node": ">=6.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/packet-reader": {
|
||||||
|
"version": "1.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/packet-reader/-/packet-reader-1.0.0.tgz",
|
||||||
|
"integrity": "sha512-HAKu/fG3HpHFO0AA8WE8q2g+gBJaZ9MG7fcKk+IJPLTGAD6Psw4443l+9DGRbOIh3/aXr7Phy0TjilYivJo5XQ=="
|
||||||
|
},
|
||||||
"node_modules/param-case": {
|
"node_modules/param-case": {
|
||||||
"version": "3.0.4",
|
"version": "3.0.4",
|
||||||
"resolved": "https://registry.npmjs.org/param-case/-/param-case-3.0.4.tgz",
|
"resolved": "https://registry.npmjs.org/param-case/-/param-case-3.0.4.tgz",
|
||||||
@ -11902,21 +11915,20 @@
|
|||||||
"integrity": "sha512-KG8UEiEVkR3wGEb4m5yZkVCzigAD+cVEJck2CzYZO37ZGJfctvVptVO192MwrtPhzONn6go8ylnOdMhKqi4nfg=="
|
"integrity": "sha512-KG8UEiEVkR3wGEb4m5yZkVCzigAD+cVEJck2CzYZO37ZGJfctvVptVO192MwrtPhzONn6go8ylnOdMhKqi4nfg=="
|
||||||
},
|
},
|
||||||
"node_modules/pg": {
|
"node_modules/pg": {
|
||||||
"version": "8.16.3",
|
"version": "8.8.0",
|
||||||
"resolved": "https://registry.npmjs.org/pg/-/pg-8.16.3.tgz",
|
"resolved": "https://registry.npmjs.org/pg/-/pg-8.8.0.tgz",
|
||||||
"integrity": "sha512-enxc1h0jA/aq5oSDMvqyW3q89ra6XIIDZgCX9vkMrnz5DFTw/Ny3Li2lFQ+pt3L6MCgm/5o2o8HW9hiJji+xvw==",
|
"integrity": "sha512-UXYN0ziKj+AeNNP7VDMwrehpACThH7LUl/p8TDFpEUuSejCUIwGSfxpHsPvtM6/WXFy6SU4E5RG4IJV/TZAGjw==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"pg-connection-string": "^2.9.1",
|
"buffer-writer": "2.0.0",
|
||||||
"pg-pool": "^3.10.1",
|
"packet-reader": "1.0.0",
|
||||||
"pg-protocol": "^1.10.3",
|
"pg-connection-string": "^2.5.0",
|
||||||
"pg-types": "2.2.0",
|
"pg-pool": "^3.5.2",
|
||||||
"pgpass": "1.0.5"
|
"pg-protocol": "^1.5.0",
|
||||||
|
"pg-types": "^2.1.0",
|
||||||
|
"pgpass": "1.x"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">= 16.0.0"
|
"node": ">= 8.0.0"
|
||||||
},
|
|
||||||
"optionalDependencies": {
|
|
||||||
"pg-cloudflare": "^1.2.7"
|
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"pg-native": ">=3.0.1"
|
"pg-native": ">=3.0.1"
|
||||||
@ -11927,12 +11939,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/pg-cloudflare": {
|
|
||||||
"version": "1.2.7",
|
|
||||||
"resolved": "https://registry.npmjs.org/pg-cloudflare/-/pg-cloudflare-1.2.7.tgz",
|
|
||||||
"integrity": "sha512-YgCtzMH0ptvZJslLM1ffsY4EuGaU0cx4XSdXLRFae8bPP4dS5xL1tNB3k2o/N64cHJpwU7dxKli/nZ2lUa5fLg==",
|
|
||||||
"optional": true
|
|
||||||
},
|
|
||||||
"node_modules/pg-connection-string": {
|
"node_modules/pg-connection-string": {
|
||||||
"version": "2.6.1",
|
"version": "2.6.1",
|
||||||
"resolved": "https://registry.npmjs.org/pg-connection-string/-/pg-connection-string-2.6.1.tgz",
|
"resolved": "https://registry.npmjs.org/pg-connection-string/-/pg-connection-string-2.6.1.tgz",
|
||||||
@ -11974,11 +11980,6 @@
|
|||||||
"node": ">=4"
|
"node": ">=4"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/pg/node_modules/pg-connection-string": {
|
|
||||||
"version": "2.9.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/pg-connection-string/-/pg-connection-string-2.9.1.tgz",
|
|
||||||
"integrity": "sha512-nkc6NpDcvPVpZXxrreI/FOtX3XemeLl8E0qFr6F2Lrm/I8WOnaWNhIPK2Z7OHpw7gh5XJThi6j6ppgNoaT1w4w=="
|
|
||||||
},
|
|
||||||
"node_modules/pgpass": {
|
"node_modules/pgpass": {
|
||||||
"version": "1.0.5",
|
"version": "1.0.5",
|
||||||
"resolved": "https://registry.npmjs.org/pgpass/-/pgpass-1.0.5.tgz",
|
"resolved": "https://registry.npmjs.org/pgpass/-/pgpass-1.0.5.tgz",
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
"@strapi/plugin-cloud": "5.21.0",
|
"@strapi/plugin-cloud": "5.21.0",
|
||||||
"@strapi/plugin-users-permissions": "5.21.0",
|
"@strapi/plugin-users-permissions": "5.21.0",
|
||||||
"@strapi/strapi": "5.21.0",
|
"@strapi/strapi": "5.21.0",
|
||||||
"pg": "^8.16.3",
|
"pg": "^8.8.0",
|
||||||
"react": "^18.0.0",
|
"react": "^18.0.0",
|
||||||
"react-dom": "^18.0.0",
|
"react-dom": "^18.0.0",
|
||||||
"react-router-dom": "^6.0.0",
|
"react-router-dom": "^6.0.0",
|
||||||
|
Reference in New Issue
Block a user