mirror of
https://github.com/tiennm99/coolify.git
synced 2026-04-17 17:21:04 +00:00
fix(service): strapi doesn't start (#8084)
This commit is contained in:
@@ -7,8 +7,29 @@
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
strapi:
|
strapi:
|
||||||
image: "elestio/strapi-development:latest"
|
image: "elestio/strapi-production:v5.33.4"
|
||||||
|
entrypoint: /bin/sh
|
||||||
|
command:
|
||||||
|
- -c
|
||||||
|
- |
|
||||||
|
cat > /opt/app/src/admin/vite.config.js << 'EOFVITE'
|
||||||
|
const { mergeConfig } = require('vite');
|
||||||
|
module.exports = (config) => {
|
||||||
|
return mergeConfig(config, {
|
||||||
|
resolve: {
|
||||||
|
alias: {
|
||||||
|
'@': '/src',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
server: {
|
||||||
|
allowedHosts: ['$SERVICE_FQDN_STRAPI']
|
||||||
|
}
|
||||||
|
});
|
||||||
|
};
|
||||||
|
EOFVITE
|
||||||
|
exec npm run develop
|
||||||
environment:
|
environment:
|
||||||
|
- SERVICE_FQDN_STRAPI
|
||||||
- SERVICE_URL_STRAPI_1337
|
- SERVICE_URL_STRAPI_1337
|
||||||
- DATABASE_CLIENT=postgres
|
- DATABASE_CLIENT=postgres
|
||||||
- DATABASE_HOST=postgresql
|
- DATABASE_HOST=postgresql
|
||||||
|
|||||||
Reference in New Issue
Block a user